JoomlaSriLanka | Web Designer in Sri Lanka

Joomla Contact Us Form Issue - PHPMAILER_RECIPIENTS_FAILED

PHPMAILER_RECIPIENTS_FAILED

Some times this error occures because default contact form tries to use users email address as the FROM address. Some hosts doesn't allow this to stop spam.

So we need to change the FROM address to the Joomla configurations FROM address in the line 162 of file components/com_contact/controller.php.

After that , for convinience, we can add users email as  REPLY TO address.


alter:

line 162 of file components/com_contact/controller.php.

 

Code:
$mail->setSender( array( $email, $name ) );



to:

Code:
$mail->setSender( array( $MailFrom, $name ) );
$mail->addReplyTo( array( $email, $name ) );

 

 There may be other reasons to cause this error , this is just a one case and this case is hard to find since the mail error doesnt generate much information.

 


Add comment


Security code
Refresh

 

Latest Work UG - New Zealand

uglydumpling.co.nz web design by sri lankan design company for new zealand

 

 

Paradise Vacations : Web Design | Joomla

 

 

paradisevacations1

 

Fly Sri Lanka : Web Design : Joomla

 

 

flysrilanka