අන්තර්ගතය වෙත යන්න
Sri Lanka · Colombo · GlobalMon–Fri, 09:00–18:00 IST
Web Design 1 min read

Joomla Contact Us Form Issue - PHPMAILER_RECIPIENTS_FAILED

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

Amila Rajapaksha
Written by
Amila Rajapaksha
CEO / Managing Director, Mobiz International (Pvt) Ltd

Amila Rajapaksha is the CEO and Managing Director of Mobiz International (Pvt) Ltd, a web design and development company based in Gampaha, Sri Lanka. Since 2010 he has helped businesses across Sri Lanka and overseas launch fast, search-friendly websites and online stores — working hands-on with WordPress, Magento and custom Laravel builds, and the SEO that makes them rank.

33 views 265 articles
Share:
PHPMAILER_RECIPIENTS_FAILED Some times this error occurs 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 convenience, 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 doesn't generate much information.
Share:

Related Articles

Comments (0)

Log in or sign up to leave a comment.

No comments yet. Be the first to share your thoughts!