All Good Things Must Come To An End

As you all know, I have been doing WordPress plugins and supporting it for the past 6 years. These 6 years of my life, I have been through my polytechnic education, my national service as well as my university education.

I just graduated from university in December 2009 and have been looking for full-time jobs. I am offered a full-time job and will be starting work on 1st February 2010.

I regret to say that I am NOT ABLE to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

However, I WILL still update my plugins whenever I can and you still can report bugs to me via email and I will try to fix it.

Author Topic: WP-Email On Yahoo Host Or Host That Have Strict Email Settings  (Read 7658 times)

0 Members and 1 Guest are viewing this topic.

Offline baban

  • Newbie
  • *
  • Posts: 1
    • View Profile
First of all my compliments on this great plugin. It reflects weeks and weeks of quality work.

I am hosted on yahoo smallbusiness.

I got this error:

“An error has occurred when trying to send this email:
» Language string failed to load: instantiate”

A closer examination reveals that the error arises because Yahoo! does not permit emails to be sent with an address which is outside the domain. For example, an email from abc@gmail.com cannot be sent to pqr@hotmail.com via Yahoo!

The solution is to modify the php file to show the sender as being from the domain.

Under the heading “// POST Variables” (line 779 or thereabouts), add the variable:

$senderemail = "myemail@mydomain.com";//add your domain’s email address

Under the heading “// PHP Mailer Variables” (line 963 or thereabouts), find the directives:

“$mail->From     = $youremail;
 $mail->FromName = $yourname;”

and substitute by:

“$mail->From     = $senderemail;
 $mail->FromName = $senderemail;”

If you want the recipient to know the email of the sender, in the template add the variable “%EMAIL_YOUR_EMAIL%,”

after the words “<p>Hi <strong>%EMAIL_FRIEND_NAME%</strong>,<br />Your friend, <strong>%EMAIL_YOUR_NAME%</strong>,”

This way the recipient will know get the sender's email alongwith the message.

Hope this helps.
« Last Edit: 01 December 2008, 14:04 by GaMerZ »

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,692
    • View Profile
  • WordPress Version: WordPress 3.0.x
  • Theme Name: lesterchan.net v3.4
Re: EMail problem solved.
« Reply #1 on: 01 December 2008, 14:03 »
Thanks for sharing, sticked and renamed post title.

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline frankb

  • Newbie
  • *
  • Posts: 1
    • View Profile
Wow... THANKS for that information! Everything is working great now, very much appreciated!

Offline catherine123

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: WP-Email On Yahoo Host Or Host That Have Strict Email Settings
« Reply #3 on: 01 October 2009, 06:04 »
First of all my compliments on this great plugin. It reflects weeks and weeks of quality work.

I am hosted on yahoo smallbusiness.

I got this error:

“An error has occurred when trying to send this email:
» Language string failed to load: instantiate”

A closer examination reveals that the error arises because Yahoo! does not permit emails to be sent with an address which is outside the domain. For example, an email from abc@gmail.com cannot be sent to pqr@hotmail.com via Yahoo!

The solution is to modify the php file to show the sender as being from the domain.

Under the heading “// POST Variables” (line 779 or thereabouts), add the variable:

$senderemail = "myemail@mydomain.com";//add your domain’s email address

Under the heading “// PHP Mailer Variables” (line 963 or thereabouts), find the directives:

“$mail->From     = $youremail;
 $mail->FromName = $yourname;”

and substitute by:

“$mail->From     = $senderemail;
 $mail->FromName = $senderemail;”

If you want the recipient to know the email of the sender, in the template add the variable “%EMAIL_YOUR_EMAIL%,”

after the words “<p>Hi <strong>%EMAIL_FRIEND_NAME%</strong>,<br />Your friend, <strong>%EMAIL_YOUR_NAME%</strong>,”

This way the recipient will know get the sender's email alongwith the message.

Hope this helps.

Can you show me to to find line 779? where I need to add $senderemail = "myemail@mydomain.com? I'm having problem how to find it, appreciate for your help. thanks.

Offline GaMerZ

  • lesterchan.net
  • Administrator
  • *****
  • Posts: 11,692
    • View Profile
  • WordPress Version: WordPress 3.0.x
  • Theme Name: lesterchan.net v3.4
Re: WP-Email On Yahoo Host Or Host That Have Strict Email Settings
« Reply #4 on: 01 October 2009, 13:04 »
Just replace
Code: [Select]
$mail = new PHPMailer();
$mail->From     = $youremail;
$mail->FromName = $yourname;
in line 1007 to 1009.
With:
Code: [Select]
$mail = new PHPMailer();
$senderemail = "myemail@mydomain.com";//add your domain’s email address
$mail->From     = $senderemail ;
$mail->FromName = $senderemail;

++ lesterchan.net - Lester Chan's Website

I regret to say that I am not able to provide support for my plugins anymore due to my full-time job commitment. I will leave this forum open and let the community help one another.

Offline catherine123

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: WP-Email On Yahoo Host Or Host That Have Strict Email Settings
« Reply #5 on: 02 October 2009, 03:59 »
@ GaMerZ
Thanks, your plugin is great! ;D

Offline Oncle Tom

  • Newbie
  • *
  • Posts: 1
    • View Profile
  • WordPress Version: WordPress 3.0.x
  • Theme Name: Custom theme
Re: WP-Email On Yahoo Host Or Host That Have Strict Email Settings
« Reply #6 on: 24 November 2010, 09:07 »
Any way to have an action or filter to do that?

In fact, the best way could to deal with `wp_email` function, to rely totally on WordPress settings, which may be overriden by a third-party plugin (like SMTP Sender).

I use authsmtp and in all cases, I can't rely on the sender email to emit email with. I just added a do_action('phpmailer_init', $mail); before $mail->Send() but in any case, if you use an action or wp_email, it would be great.

Thanks :)