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 ) );

 

 

Comments (15)
  • admin  - Im willing to share my everyday Joomla experiences
    If you have any questions , i might be able to help.
    :)
    cheers
  • Ash  - PHPMAILER_RECIPIENTS_FAILED
    Hi there,

    I tried the above suggested solution but still it doesnt seem to work. My problem is I'm using the Flexi Contact component to create a simple enquiry form. Users can send mail to the the admin regarding their enquiries. However the email doesnt go through to the admin but instead the page display ' PHPMAILER_RECIPIENTS_FAILED' error. But the "Email a copy of this message to your own address" option works fine and a copy is sent to the users email.

    Any suggestions will be really helpful.

    Thanks.
  • Anonymous  - re: PHPMAILER_RECIPIENTS_FAILED
    Hi there,

    I tried the above suggested solution but still it doesnt seem to work. My problem is I'm using the Flexi Contact component to create a simple enquiry form. Users can send mail to the the admin regarding their enquiries. However the email doesnt go through to the admin but instead the page display ' PHPMAILER_RECIPIENTS_FAILED' error. But the "Email a copy of this message to your own address" option works fine and a copy is sent to the users email.

    Any suggestions will be really helpful.

    Thanks.


    Seems something wrong in your email account settings. What is the setting you are using for sending emails out ? SMTP , SendMail or PHPMailer ?
  • WebMystic  - PHPMAILER_RECIPIENTS_FAILED
    The above solution doesn't work for me. If I use SMTP Server the Registerer will not get a email but I do as the Admin. If I change the Server to PHP Mail Function, then the Registerer gets an email but I as the site admin do not.


    I have my own lab.
    I'm running exchange 2010
    Joomla 1.5 on Fedora12
    unblocked port 25

    Global Setup that send to the Administrator but not to the Registrar
    Mailer: SMTP Server
    Mail from: xzy@domain.com
    From Name: Web Master (does this name map to anything or can it be anything)
    Sendmail Path: /usr/sbin/sendmail
    SMTP Authentication: No
    SMTP Scurity: None
    SMTP Port: 25
    SMTP username: myname
    SMTP Password: ...............
    SMTP Host: mail.domain.com
  • Anonymous  - re: PHPMAILER_RECIPIENTS_FAILED
    WebMystic,

    Try with SMTP Authentication: YES

    regards

    JSL

    The above solution doesn't work for me. If I use SMTP Server the Registerer will not get a email but I do as the Admin. If I change the Server to PHP Mail Function, then the Registerer gets an email but I as the site admin do not.


    I have my own lab.
    I'm running exchange 2010
    Joomla 1.5 on Fedora12
    unblocked port 25

    Global Setup that send to the Administrator but not to the Registrar
    Mailer: SMTP Server
    Mail from: xzy@domain.com
    From Name: Web Master (does this name map to anything or can it be anything)
    Sendmail Path: /usr/sbin/sendmail
    SMTP Authentication: No
    SMTP Scurity: None
    SMTP Port: 25
    SMTP username: myname
    SMTP Password: ...............
    SMTP Host: mail.domain.com
  • jamal  - Many thanks
    Many many thanks.

    It worked fine.

  • Emmanuel
    I have tried all the suggested setting above, it does not work for me, any more suggestion?
  • werer
    Noise Reduction Headphones For Travel.
    Noise canceling headphones, link:http://www.brandhu.com a term that may mean a lot if you are not sure of that they work. link:http://www.brandhu.com It's gotten a great deal of interest because of the complicated technologies used, once a rare commodity, link:http://www.brandhu.com they are as fashionable as a music player.
    Are you a frequent flier or do you work inside a noisy atmosphere? link:http://www.brandhu.com Then it seems like you may need good quality noise reduction headphones. These won't eliminate the noise of droning link:http://www.brandhu.com jet engines and also the screaming baby in the next aisle or those loud phone conversations your work colleagues are experiencing within the next cubicle at the office but additionally, link:http://www.brandhu.com you will have the ability to pay attention to the soothing sounds of your choice of music while this really is all link:http://www.brandhu.com happening around you.
    Arriving th...
  • surendra pareek  - flexo contact error
    hello sir,
    i am trieng all these above settings but it can't work. it give an error when smtpserver type is "Failed to send message.: PHPMAILER_CONNECT_HOST". pls tell me the reason of this eerror and solution.
  • Jason  - Try with outlook
    First try your SMTP settings by creating email accounts with Outlook or thurderbird and see if you can send and recieve emails with the given smtp server / username / password and port.

    Let me know the result.

    regards

    Jason
    www.joomlasrilanka.com
  • gfhf
    link:http://www.zacoo.com/resin-cabochons.html
    link:http://www.zacoo.com/acrylic-beads.html
    link:http://www.zacoo.com/resin-cabochons.html
    link:http://www.zacoo.com/tibetan-style-beads.html
    link:http://www.zacoo.com/tibetan-silver-beads.htmlJewelry for businesses and organizations can include traditional personalization such as logos and taglines, link:http://www.zacoo.com/resin-cabochons.html link:http://www.zacoo.com/jewelry-beads.html/but they can also be much more personal and creative. Zacoo.com Jewelry’s designers work closely with clients to create a unique and exciting look that is original and current.
  • Bryan  - Thanks!
    This worked for me. Thanks!!! :)

    Bryan
    Founder
    http://www.Gov-Teaming.com
  • channel bags  - channel bags
    As is known to us, Chanel Handbags are actually popular now. A nice-looking Chanel handbags is easily attracted and become women's best friend absolutely. No one can resist their temptation. There is no doubt that Channel Evening Bags is now playing a more and more important role in Chanel Outlet.
  • channel bags  - channel bags
    As is known to us, Chanel Handbags are actually popular now. A nice-looking Chanel handbags is easily attracted and become women's best friend absolutely. No one can resist their temptation. There is no doubt that Channel Evening Bags is now playing a more and more important role in Chanel Outlet.
  • channel bags  - channel bags
    As is known to us, Chanel Handbags are actually popular now. A nice-looking Chanel handbags is easily attracted and become women's best friend absolutely. No one can resist their temptation. There is no doubt that Channel Evening Bags is now playing a more and more important role in Chanel Outlet.
Write comment
Your Contact Details:
Comment:
:D:angry::angry-red::evil::idea::love::x:no-comments::ooo::pirate::?::(
:sleep::););)):0
Security
Please input the anti-spam code that you can read in the image.
 

Bookmark Us


Sponsored Links

Sponsored Messages

Find us on Facebook

 

page_rank_4

You are here: Home Blog Joomla Contact Us Form Issue - PHPMAILER_RECIPIENTS_FAILED