Joomla! empty RCPT
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 ?
精彩评论