SMTP Email send issue from Guestbook
Posted: 23 Dec 2009, 23:11
I have to use my commercial smtp provider to send any outgoing emails from my Joomla site.
However, the "send" option when activated, appears to override my "send from" email address to be the users email they entered in the guestbook. When this happens I get the PHPMAILER_RECIPIENTS_FAILED error.
I have found a number of references to Joomla issues with problem, and I was able to modify the line 570 by adding and override:
Although this works, I am wondering why this would be required. Why doesn't Joomla (or this module) account for a "send" that must match the name "authorised" to do the sending.
Thanks
However, the "send" option when activated, appears to override my "send from" email address to be the users email they entered in the guestbook. When this happens I get the PHPMAILER_RECIPIENTS_FAILED error.
I have found a number of references to Joomla issues with problem, and I was able to modify the line 570 by adding and override:
Code: Select all
$mailfrom = $mainframe->getCfg('mailfrom'); // ADDED TO FORCE SMTP FROM TO BE MY SITE
JUtility::sendMail($mailfrom, $fromname, $email, $subject, $message);
Thanks