コースリクエスト時の差出人メールアドレスについて

Re: コースリクエスト時の差出人メールアドレスについて

- Mitsuhiro Yoshida の投稿
返信数: 1
画像 Developers 画像 Particularly helpful Moodlers 画像 Translators

大変申し訳ございません。

2018年 03月 12日(月曜日) 18:41に投稿させて頂きました修正案の比較演算子 (==) の記述が間違っておりました。
よろしければ、ご都合のよろしい時に下記修正をお試しください。

修正対象プログラム:
lib/moodlelib.php

修正箇所:
5816行目

[ 修正前 ]
    // Make up an email address for handling bounces.
    if (!empty($CFG->handlebounces)) {
        $modargs = 'B'.base64_encode(pack('V', $user->id)).substr(md5($user->email), 0, 16);
        $mail->Sender = generate_email_processing_address(0, $modargs);
    } else {
        $mail->Sender = $noreplyaddress;
    }

    // Make sure that the explicit replyto is valid, fall back to the implicit one.
    if (!empty($replyto) && !validate_email($replyto)) {
        debugging('email_to_user: Invalid replyto-email '.s($replyto));
        $replyto = $noreplyaddress;
    }

[ 修正後 ]
    // Make up an email address for handling bounces.
    if (!empty($CFG->handlebounces)) {
        $modargs = 'B'.base64_encode(pack('V', $user->id)).substr(md5($user->email), 0, 16);
        $mail->Sender = generate_email_processing_address(0, $modargs);
    } else {
        $mail->Sender = $noreplyaddress;
    }

    if ($subject == get_string('courserequest')) {
        $noreplyaddress = $from->email;
        $replyto = $noreplyaddress;
    }

    // Make sure that the explicit replyto is valid, fall back to the implicit one.
    if (!empty($replyto) && !validate_email($replyto)) {
        debugging('email_to_user: Invalid replyto-email '.s($replyto));
        $replyto = $noreplyaddress;
    }

Mitsuhiro Yoshida への返信

Re: コースリクエスト時の差出人メールアドレスについて

- Ai ChiSato の投稿

お返事が遅くなり申し訳ございません。

テストサーバで再度確認したところ、問題なく表示がされました。

本番機も別途機会を見て変更をしようかと思います。


早速のご返答、ありがとうございました。