Error 

Email problems with Wordpress Plugins

628 views
Posted July 25, 2006 at 09:07pm in Computers, Programming, Wordpress

Moving everything to Wordpress has been different I guess you would say. I have had to edit many plugins to get this thing to work correctly and recently I had to edit even more to get some simple functionality. I am in no way knocking Wordpress, it is just that most plugins are originally developed for the developer and eventually get released to the public. This makes the occurance of bugs a little more common. There are a couple scripts which shall remain nameless that caused problems with my current setup. The reason was that IIS6 seems to have trouble with email addresses that have < and > in them.

Example Header

From: Peter Manis <notgonna@tellyou.com>

So you have to remove the name and the < and > to get it to work. However this seems strange to me because I remember formatting my email in asp that way. It has been so long since I wrote any asp that it could just be the way asp works that makes that format work. I did not test whether it was IIS WWW or IIS SMTP that caused this problem. When I have the opportunity to test this I will post an update.

So to those of you who have seen an error in your PHP logs that said

“SMTP server response: 501 5.5.4 Invalid Address in….”

then by removing the above from the scripts it will fix the problem. My recommendation is to make a copy of the line and make it a comment until I have an opportunity to find out whether it was W3 on IIS or SMTP.

  • Google
  • del.icio.us
  • Digg
  • Spurl
  • Facebook

One Response to “Email problems with Wordpress Plugins”

  1. Stass Soldatov Says:
    June 28th, 2007 at 10:30 am

    found your post by google - so decided to comment it to help someone

    jun ran into the same problems - and found the solution. It
    seems that this is a bug in PHPmailer (wp-includes\class-phpmailer.php), it generates invald e-mail addresses like
    >
    - outer are wrong - at least, wrong for IIS SMTP server.

    I’ve done quick patch in the wordpress, by deleting full from name in all messages, inserting line in file pluggable.php, function wp_mail:

    }
    $phpmailer->From = trim( $from );
    insert>>> $phpmailer->FromName = “”;
    break;
    default:



Leave a Reply