netcommons / NetCommons2

NetCommons Version2
17 stars 21 forks source link

エンベロープFrom を設定していない #135

Open akagane99 opened 7 years ago

akagane99 commented 7 years ago

転記

永原です。

NetCommons2 のメール送信では、エンベロープFrom を設定していないと思います。 最近のメールセキュリティチェックでは、エンベロープFrom がないと、SPAM 扱いになるケースがあるようです。

\webapp\components\mail\Main.class.php の 381 行目あたりにSender プロパティを設定した方が良いと思うのです。 以下、該当部分のソース

            $this->_mailer->ClearAllRecipients();
            $this->_mailer->AddAddress($email);
            if (!empty($this->fromEmail)) {
                $this->_mailer->From = $this->fromEmail;
                $this->_mailer->Sender = $this->fromEmail;
            }

上記で、From と同じものを設定するようになります。

以上、参考までに。