开发者

Joomla! empty RCPT

开发者 https://www.devze.com 2023-04-11 07:27 出处:网络
I\'m working with a Joomla! component that uses the JFactory::getMailer() to send confirmation emails.

I'm working with a Joomla! component that uses the JFactory::getMailer() to send confirmation emails.

The PHP code looks something like this:

$mail->addRec开发者_运维问答ipient( 'admin@mydomain.com' );
$mail->setSender( array( $MailFrom, $FromName ) );
$mail->setSubject( $FromName.': '.$subject );
$mail->setBody( $body );
$mail->IsHTML(true);
$sent = $mail->Send();

However, the log file shows the following:

+FROM:<customerservice@otherdomain.com>
+TO:<admin@mydomain.com>
+TO:<>
+TO:<>

As a result of the empty TO addresses, we're getting a 501 and the email(s) are not getting sent. Any ideas?


JUtility::sendMail() is the preferred way to send mail. Can you try using that and post the results ?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号