I released version 0.7 of the WP Mail SMTP plugin a couple of days ago. To make support a little more manageable I’m going to switch the comments from the plugin page to a post for each version. So please ask in the comments here for all support questions related to version 0.7. If you’re using a previous version, please upgrade and then post your questions here!
Please be sure to look back at previous questions before posting here. If you’re having a problem where mails are not being sent, or anything of that nature, please post your debugging output. Send a test mail, then copy / paste the response into the comments. Remember to delete any passwords. I’d recommend you replace any @ symbols with something else (at), [at], #at#, etc.

???? plugin works great!!! Can you get this plugin to work for bbpress the latest version? Would be seriously helpful!!
I haven’t looked at bbPress for a while now, so no idea how it relates to this plugin I’m afraid. I might get round to that at some point in the future, but it’s not a huge priority for me.
Great plugin, great work.
I’ve installed it, tested inside the admin panel, but all my email continues to go through wordpress. How can I debug this? Just dont get what I did wrong.
@Gustavo Leig: I’m not sure what you mean “my email continues to go through wordpress”. Can you explain that in a little more detail? What do you expect to happen? What is currently happening?
Thanks for the reply,
the email is being sent like the smtp wasnt installed, through
wordpress send mail. I tested the contact form.
I dont know what is happening but I cant get any notification for new
comments, same problem I was having before installing the plugin.
Gus
@Gustavo Leig: Is your contact form provided by a plugin? There’s no contact form in WordPress core as far as I know. So your plugin may not be configured to send mail via the wp_mail() function, in which case, the WP Mail SMTP plugin will have no effect on your contact form.
You say you’re not receiving “notification for new comments”. Is your problem related to this bug?
Try sending a test mail through the plugin, does that work?
well, it seems to work now, the only thing I changed is that I disabled the plugin AJAX Comments WPMUified. What plugin do you use to this ajax comment form?
and thank you for replying.
@Gustavo Leig: Glad it’s working.
I use the K2 theme which includes ajax commenting.
I was wondering where I can specify the port to use for smtp in your smtp
plugin. Bluehost.com requires port 26, not port 25.
Thanks
Hey Callum, I have included the Test Email output to a Yahoo address as well as a Hotmail address like you requested. I’m sure it’s probably something minute I’m just looking over.
HOTMAIL:
Test Message Sent
The result was:
bool(true)
The SMTP debugging output is shown below:
SMTP -> FROM SERVER:
220 server1.example.com ESMTP Postfix (Ubuntu)
SMTP -> FROM SERVER:
250-server1.example.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
SMTP -> FROM SERVER:
250 2.1.0 Ok
SMTP -> FROM SERVER:
250 2.1.5 Ok
SMTP -> FROM SERVER:
354 End data with .
SMTP -> FROM SERVER:
250 2.0.0 Ok: queued as DB51B4CA37
SMTP -> FROM SERVER:
221 2.0.0 Bye
YAHOO:
Test Message Sent
The result was:
bool(true)
The SMTP debugging output is shown below:
SMTP -> FROM SERVER:
220 server1.example.com ESMTP Postfix (Ubuntu)
SMTP -> FROM SERVER:
250-server1.example.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH PLAIN LOGIN
250-AUTH=PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
SMTP -> FROM SERVER:
250 2.1.0 Ok
SMTP -> FROM SERVER:
250 2.1.5 Ok
SMTP -> FROM SERVER:
354 End data with .
SMTP -> FROM SERVER:
250 2.0.0 Ok: queued as B6A7D4CA37
SMTP -> FROM SERVER:
221 2.0.0 Bye
They both appear to go through, but I check both of these accounts fairly regularly and have even made sure to check all junk email folders, but still no verification email.
@yoda: Short answer, I’m not sure if you can. Try changing the port to “localhost:26″ and see if that works. If not, then it’s not currently an option. If that doesn’t work, post back and I’ll see about adding it as an option.
@Jerod: You said:
Do you mean that you’re not receiving the test email from the plugin? Or do you mean that you’re not receiving some other email from WordPress?
Have you specified a from email address? Are you receiving bounce emails to that address? I know that Yahoo and Hotmail can be a bit funny about some IPs, they simply reject the mail outright if they don’t like your IP. It could be something related to that.
thanks. but where do I do this change? I see the mail() php file, but that’s if we use php_mail right? which file do I edit for you change?
Thanks.
@yoda: No changes to the file are required. I’m suggesting changing the host setting in the options page to “hostname:26″. If your host is localhost, use “localhost:26″.
After installing plug-in, I finally started getting comment notifications and notifications of new subscribers to my WordPress admin account; however, any e-mail addresses outside of my blog domain do not receive e-mails. I’ve tried both the test feature in the plug-in and registering on my blog with an email address with a domain name other than my blog, and do not receive any e-mails. Any help is appreciated.
@Eric: Please post your debugging output so I can advise further.
Hi! This must be the most stupid question you have ever seen
I installed your plugin in Wordpress 2.5. I got the HTML page with all the required form fields. But how can i integrate the form with your plugin and have the email sent!? Could you help?
@tornth: I don’t understand your question. Do you have another plugin which you would like to send emails through my plugin instead of php’s mail() function? If that is the case, the question is prominently answered here.
Or, if you meant something different, please explain your problem in more detail and I’ll try to help.
I would like to have a contact form in my website, so that my customer could send me message directly from my web; http://www.jpjtrade.co.th/contact.htm . I have found your plugin in Wordpress and think that i could use your plugin as the easiest solution (for person who knows nothing about PHP mail) to add email capabilities to my site.
Thank you for your reply
@tornth: I think you’ve misunderstood the purpose of this plugin. It doesn’t add a contact form, it changes the way that WordPress sends emails. If you want a contact form, I’d suggest searching on WordPress.org.
maybe i’m dumb!
i have installed the plugin, i tested with a test email and it works good, now, how do i contact the users? i can’t find any link in the admin panel…
@maurizio: The plugin doesn’t add any feature to allow you to email users. It allows you to send email by SMTP instead of PHP’s mail() function. If you don’t know what that means, you most likely don’t need the plugin.
hi, ihave installed wp-mail-smtp in my website
the test mail is working though smtp with anonymous login (no need to set login/paswd).
BUT
i am using subscribe2 plugin.
i checked and this one is using wp_mzil function to send emails
bUT
it isnt’ working even with wp-mail-smtp activated.
here are the calls to wp_mail in the subscibe2 plugin
// actually send mail
if ( (defined(’BCCLIMIT’)) && (BCCLIMIT > 0) && (isset($batch)) ) {
foreach ($batch as $bcc) {
$newheaders = $headers . “$bcc\r\n”;
@wp_mail($this->myemail, $subject, $mailtext, $newheaders);
}
} else {
@wp_mail($this->myemail, $subject, $mailtext, $headers);
}
….
return @wp_mail($this->email, $subject, $body, $mailheaders);
@yugz: When you say “it’s not working with subscribe2″, what do you mean? Do you mean that emails are not being sent?
Have you tried sending the test email to a yahoo, hotmail, etc address? Any email address that is not hosted on the same server would be fine. Perhaps your SMTP server requires authentication to send to addresses which are not on your domain.
Hello,
I’m having a problem getting this plugin to work. It installed fine so far, but when I try to save my Options (using the “Update Options” button) I only get the following message:
Are you sure you want to do this?
Please try again.
“Send Test” doesn’t work, either.
I’m running WPMU 1.5.1, if that matters.
Regards,
Frank
@Frank: The plugin options won’t work in WPMU because it handles options in a different way. I haven’t updated the plugin to be cross compatible.
I’m assuming you want the plugin to run across the whole site, for all blogs. Is that correct? What I’ll probably do is add the ability to set options in wp-config.php. Then you could put the plugin in the mu-plugins folder and it will work for all WPMU blogs.
@Callum: You’re right, I’d like the plugin to work for all blogs. I’m using WPMU at Bochum Ruhr-University for e-learning purposes and it’d be great to have it fully functional
Thanks in advance,
Frank
Hi…uhm it was working a while ago but now I’m not receiving any email from my WP.
The SMTP debugging output is shown below:
SMTP -> ERROR: Failed to connect to server: Connection refused (111)
I tried manually sending messages to my email address and it works..so I think its something with WP but I don’t know what exactly.
could you help me please..thank you ^^
@asrai: It sounds like there’s a problem with the server you’re trying to send mail through. Are you sending mail via “localhost”? Have you tried connecting to the server on port 25 to see if it accepts mail?
If that’s a bit too techy, I’d suggest contacting your host and asking them to check that everything is working ok with your mail. Tell them that WordPress is trying to send mail on port 25 and getting the connection refused error.
Hi Callum,
I have tried your plug-in and would really like to use it, however, it doesn’t seem to work for me. I have read all the post and nothing seems to work. The following is the error info after trying to use the SMTP function. When using the PHP mail() function, I get “bool(false)”. What should I do?
My site is hosted with GoDaddy using Windows Server.
The result was:
bool(false)
The full debugging output is shown below:
object(PHPMailer)#3 (39) {
["Priority"]=>
int(3)
["CharSet"]=>
string(5) “UTF-8″
["ContentType"]=>
string(10) “text/plain”
["Encoding"]=>
string(4) “8bit”
["ErrorInfo"]=>
string(44) “Language string failed to load: connect_host”
["From"]=>
string(24) “trish@kaunitzcentral.com”
["FromName"]=>
string(13) “Trish’s Place”
["Sender"]=>
string(0) “”
["Subject"]=>
string(49) “WP Mail SMTP: Test mail to kaunitze@gilmerisd.org”
["Body"]=>
string(68) “This is a test email generated by the WP Mail SMTP WordPress plugin.”
["AltBody"]=>
string(0) “”
["WordWrap"]=>
int(0)
["Mailer"]=>
string(4) “smtp”
["Sendmail"]=>
string(18) “/usr/sbin/sendmail”
["PluginDir"]=>
string(0) “”
["Version"]=>
string(4) “1.73″
["ConfirmReadingTo"]=>
string(0) “”
["Hostname"]=>
string(0) “”
["Host"]=>
string(24) “smtpout.secureserver.net”
["Port"]=>
int(25)
["Helo"]=>
string(0) “”
["SMTPAuth"]=>
bool(true)
["Username"]=>
string(24) “trish@kaunitzcentral.com”
["Password"]=>
string(7) “*******”
["Timeout"]=>
int(10)
["SMTPDebug"]=>
int(2)
["SMTPKeepAlive"]=>
bool(false)
["smtp"]=>
object(SMTP)#103 (6) {
["SMTP_PORT"]=>
int(25)
["CRLF"]=>
string(2) ”
”
["do_debug"]=>
int(2)
["smtp_conn"]=>
bool(false)
["error"]=>
array(3) {
["error"]=>
string(27) “Failed to connect to server”
["errno"]=>
int(10060)
["errstr"]=>
string(185) “A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
”
}
["helo_rply"]=>
NULL
}
["to"]=>
array(1) {
[0]=>
array(2) {
[0]=>
string(22) “kaunitze@gilmerisd.org”
[1]=>
string(0) “”
}
}
["cc"]=>
array(0) {
}
["bcc"]=>
array(0) {
}
["ReplyTo"]=>
array(0) {
}
["attachment"]=>
array(0) {
}
["CustomHeader"]=>
array(0) {
}
["message_type"]=>
string(5) “plain”
["boundary"]=>
array(2) {
[1]=>
string(35) “b1_25d3d55176dab3cd94694abae51a5797″
[2]=>
string(35) “b2_25d3d55176dab3cd94694abae51a5797″
}
["language"]=>
array(0) {
}
["error_count"]=>
int(2)
["LE"]=>
string(1) ”
”
}
The SMTP debugging output is shown below:
SMTP -> ERROR: Failed to connect to server: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
(10060)
Thanks for all you do and for all your help!
@Eric: It looks like your hosting account cannot connect to the server. Have you tried sending a test mail with the SMTP server set to “localhost”? Does that work?
I’d recommend asking GoDaddy if your SMTP server is correct. It looks like the script cannot connect to the server. Let me know if you don’t get any further and we’ll see what we can do.
I used “localhost” and it seemed to connect, but still no go. Here is the result…
The result was:
bool(false)
SMTP -> FROM SERVER:
220 p3swh203.gdhosting.gdg Microsoft ESMTP MAIL Service, Version: 7.0.6001.18000 ready at Fri, 11 Jul 2008 06:52:14 -0700
SMTP -> FROM SERVER:
250-p3swh203.gdhosting.gdg Hello [127.0.0.1]
250-TURN
250-SIZE 2097152
250-ETRN
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-8bitmime
250-BINARYMIME
250-CHUNKING
250-VRFY
250 OK
SMTP -> FROM SERVER:
250 2.1.0 trish@kaunitzcentral.com….Sender OK
SMTP -> FROM SERVER:
550 5.7.1 Unable to relay for eric@kaunitzcentral.com
SMTP -> ERROR: RCPT not accepted from server: 550 5.7.1 Unable to relay for eric@kaunitzcentral.com
SMTP -> FROM SERVER:
250 2.0.0 Resetting
Thanks, Eric
@Eric: Sounds like a problem with your server I’m afraid. It should accept and relay any mail from localhost.
You’re using GoDaddy for hosting right? I’d suggest contacting them and asking what SMTP server your web scripts should send mail to. If it’s localhost, send them the error message. If it’s not, try that server and see what you get. If it’s the server you’ve already tried, again, send them the error.
Unfortunately the fault lies with them. The plugin seems to be working ok.
Dear,
I have tried getting this plugin to work, however it just simply wont.
I am not sure why, I tried with different smtp servers (w and w/o authentication) etc…
the log is as follows:
object(PHPMailer)#178 (39) {
["Priority"]=>
int(3)
["CharSet"]=>
string(5) “UTF-8″
["ContentType"]=>
string(10) “text/plain”
["Encoding"]=>
string(4) “8bit”
["ErrorInfo"]=>
string(44) “Language string failed to load: connect_host”
["From"]=>
string(24) “admin~~(at)~~circassiannews.com”
["FromName"]=>
string(14) “CircassianNews”
["Sender"]=>
string(0) “”
["Subject"]=>
string(46) “WP Mail SMTP: Test mail to yanal99~~(at)~~hotmail.com”
["Body"]=>
string(68) “This is a test email generated by the WP Mail SMTP WordPress plugin.”
["AltBody"]=>
string(0) “”
["WordWrap"]=>
int(0)
["Mailer"]=>
string(4) “smtp”
["Sendmail"]=>
string(18) “/usr/sbin/sendmail”
["PluginDir"]=>
string(0) “”
["Version"]=>
string(4) “1.73″
["ConfirmReadingTo"]=>
string(0) “”
["Hostname"]=>
string(0) “”
["Host"]=>
string(12) “212.38.XXX.X”
["Port"]=>
int(25)
["Helo"]=>
string(0) “”
["SMTPAuth"]=>
bool(true)
["Username"]=>
string(7) “myusername”
["Password"]=>
string(8) “mypassword”
["Timeout"]=>
int(10)
["SMTPDebug"]=>
int(2)
["SMTPKeepAlive"]=>
bool(false)
["smtp"]=>
object(SMTP)#4 (6) {
["SMTP_PORT"]=>
int(25)
["CRLF"]=>
string(2) ”
”
["do_debug"]=>
int(2)
["smtp_conn"]=>
bool(false)
["error"]=>
array(3) {
["error"]=>
string(27) “Failed to connect to server”
["errno"]=>
int(110)
["errstr"]=>
string(20) “Connection timed out”
}
["helo_rply"]=>
NULL
}
["to"]=>
array(1) {
[0]=>
array(2) {
[0]=>
string(19) “yanal99~~(at)~~hotmail.com”
[1]=>
string(0) “”
}
}
["cc"]=>
array(0) {
}
["bcc"]=>
array(0) {
}
["ReplyTo"]=>
array(0) {
}
["attachment"]=>
array(0) {
}
["CustomHeader"]=>
array(0) {
}
["message_type"]=>
string(5) “plain”
["boundary"]=>
array(2) {
[1]=>
string(35) “b1_e20d6de685c7e67e719b4e97699b98bd”
[2]=>
string(35) “b2_e20d6de685c7e67e719b4e97699b98bd”
}
["language"]=>
array(0) {
}
["error_count"]=>
int(2)
["LE"]=>
string(1) ”
”
}
The SMTP debugging output is shown below:
SMTP -> ERROR: Failed to connect to server: Connection timed out (110)
@Enal: The error is “Failed to connect to server”, “Connection timed out”. Have you specified the host as an IP? Are you sure your server can connect to that host on port 25?
Thanks for your reply Callum… I have been struggling with this smtp thing for a couple of weeks now, and I really appreciate your help since I am not that technical and I reach a level way beyond where I thought I woudl be.
When you say “host” what do you mean? is that the host where my website is hosted, or is that the remote smtp server that my ISP at home has?
I have tried both. meaning that I used my ISP’s smtp server (an IP address) as well as the website host (godaddy) smtp server. Both gave the same error. I also used Yahoo’s smtp server where I have an email plus account with gives you an smtp server.
All of them gave the same error.
If you can direct me to what to ask my website host, please let me know. I have talked to them many times and i got different answers every time depending on the person i talk to (the host is godaddy.com)
thanks and truely I appreciate any feedback that I can get.
@Enal: The host is the address of the mail server which WordPress tries to connect to. Is your host GoDaddy? According to this post GoDaddy’s SMTP server is relay-hosting.secureserver.net. Try putting that into the “SMTP Host” field in the Settings > Email page. Then try sending a test mail, and see how you get on.
Please post back and let us know how you get on. I might add an FAQ for GoDaddy if it works.
Hey,
Thanks for the help. Well according to this article they use a different smtp server http://help.godaddy.com/article/2649
However, I used the one provided with your article, and IT WORKS!
it shows an error though, take a look at the log
bool(true)
The SMTP debugging output is shown below:
SMTP -> FROM SERVER:
220 p3smtphosting03-02.prod.phx3.secureserver.net ESMTP
SMTP -> FROM SERVER:
250-p3smtphosting03-02.prod.phx3.secureserver.net
250-PIPELINING
250-SIZE 30457280
250 8BITMIME
SMTP -> ERROR: AUTH not accepted from server: 502 unimplemented (#5.5.1)
SMTP -> FROM SERVER:
250 flushed
SMTP -> FROM SERVER:
250 ok
SMTP -> FROM SERVER:
250 ok
SMTP -> FROM SERVER:
354 go ahead punk, make my day
SMTP -> FROM SERVER:
250 ok 1218547685 qp 6856 by p3smtphosting03-02.prod.phx3.secureserver.net
SMTP -> FROM SERVER:
221 p3smtphosting03-02.prod.phx3.secureserver.net Goodbye.
@Enal: The error says you need to turn off authentication. So in Settings > Email, choose “No: Do not use SMTP authentication.”
Hi Callum,
Your plugin seems to solve a lot of problems people (including me) are having with Wordpress comments notifications. I followed all the steps above and switching to relay-hosting.secureserver.net and turning off the authentication avoids that error. But I’m getting some long delays before the mail is sent. I also have a strange feeling that using that server isn’t as secure as the one GoDaddy wants me to use. I mean, is that server just sitting open for anyone who wants to use it? How can I send on it without giving it a user name and password.
According to this (http://help.godaddy.com/article/2649), Godaddy wants everyone to use the following settings:
- SMPT server: smtpout.secureserver.net
- Port: 80
I’d like to be able to adjust the port number to be 80 so I can try that server. Your plugin is currently running on port 25, right?
I’m just a little nervous sending emails through a server that doesn’t require any authentication of any kind. Any thoughts?
@Albert: It’s not an open mail server. Try connecting directly to it from your computer and sending mail, you’ll get this error “553 sorry, relaying denied from your location”. It’s a mail server that only relays for GoDaddy (or SecureServer.net) servers.
Try checking the IP of the server (68.178.232.62) here, you’ll see the server is not blacklisted on any of the DNS blacklists. It almost certainly would be if it was an open relay.
Ah! Ok, that sets my mind at ease, a little. But I would like to play by the “rules” if possible, and I think that involves switching to port 80. Is there any way to do that easily?
@Albert: I’m almost certain that mail is not supposed to be delivered on port 80. However, you’re welcome to try. I believe you can specify the hostname as hostname:port and it will work. I strongly doubt port 80 will work though.
Well, the only reason I want to try it is because http://help.godaddy.com/article/2649 says to set it to 80. I’ll let you know if it works, but I don’t know how to change the port on your plugin. Is there an option somewhere or do I need to open up the code?
@Albert: See my last comment Albert. I believe you can specify hostname:port in the hostname field in the plugin. No coding required.
Albert, the article you posted is talking about setting up Outlook, on your computer, not on your web server. It also says this:
If your mail is working currently on port 25 via relay-hosting.secureserver.net then I’d *strongly* suggest you leave it at that. It works, it ain’t broke, it don’t need fixed.
Ok, ok. I’ll take the hint and not mess with the port
I just wanted to make sure I’m not over exposing myself to something bad. I really don’t know anything about this stuff, but as long as you say it’s an internal mail server that only GoDaddy hosted sites have access to, I guess that’s ok then. It still just kind of freaks me out that I can send email on that without a user name or password.
@Albert: Authentication is used to prove who you are when you connect to the internet from many different places. That’s not necessary (nor practical) on a server, because it has a fixed IP and so any mail from that IP comes from that server.
Not authenticating is the norm for a server, not the exception.
hello
i have just installed wp_smtpmail .but its not working fine.when i try to change seting through admin like form email,name etc. it says
are you sure you want to do it?
please try again
if i try to send email it says out is given here
but there is nothing. please help me.
@raja sangwan: Are you clicking the “Update Options” button? Are you running WordPress version 2.6.1? It works for me, I’ve just tested on the new version, and everything seems fine.
If you’re still getting an error, can you post a series of screenshots of steps you’re taking and the errors you’re getting?
Thanks for this great plugin. i used a different plugin and it would only send to the admin user. this works great!
Heya!
First of all: You plugin is really really helpful! *thumbsup*
… If it would just work
I have a wordpress-blog running and it seemed that it doesn’t send any mails. So I installed you plugin and tried again and everything worked fine as the subscribe2 plugin sent emails.
Today I noticed that it is no longer possible to register for my blog as the registration ends in a blank screen after I press the submit-button… an email (with the password) is never sent (or doesn’t arrive)
Any suggestions?
If you want to try it: australien.kilu.de
Thank you! Have a nice day!
Andreas
@Andreas: Sounds like you’re hitting a PHP error, that’s the white screen of death. Look in your web server error logs, you should find some information there.
Try disabling the plugin, then test again. Do you get registration emails? Or do you still get the white screen of death?
Just an addition to my last comment:
If I switch from SMTP to php mail() (in the preferences of your plugin) I don’t get a blank screen but a message that I should check my email-account… (but the mail isn’t sent as the mail() doesn’t work)
@Andreas: If switching to mail() works, then you need to check your web server error logs for more information about the problem. Something is dying, and the error message will be in the logs.
Can you send a test mail from the options page? Does that work ok?
Heya!
Me again. For now I have a workaround that works (my provider has an experimental function that overwrites the mail()-method and uses smtp instead).
Additionally I wrote an email to my provider where I can find the server-logs as they are located neither on my webspace nor in the userinterface…
(Btw. is it “..they aren’t located neither… nor…” or is it “they are located neither… nor…” ? =) )
And I really like your plugin more than any experimental function without support (they say any question concerning that functionality via email or in the forum will be deleted…… ) =)
@Andreas: I deleted your double posted comment.
It is “are located neither in a nor in b”.
You’ll need to find the error message in the log to make sense of the white screen of death I’m afraid. Either that or you could look at changing the PHP display_errors ini var. That might not be possible though, it depends on your host.
Thank you again - sorry for the double posting…
I’ll wait for the answer of my host and inform you as soon as I have new information.
I have no idea where I can find the log files atm…
hello,
the plugin looks cool..
but its not working for me using Apache server in my Windows Vista as a localhost
I am using my gmail id to send mail.. I tried smtp.gmail.com, smtp.comcast.net, localhost and localhost:26 as my SMTP host name.. but noneof them sends the test mail..
Here’s the trace.. Plz help..
bool(false)
["smtp"]=>
object(SMTP)#19 (6) {
["SMTP_PORT"]=>
int(25)
["CRLF"]=>
string(2) ”
”
["do_debug"]=>
int(2)
["smtp_conn"]=>
bool(false)
["error"]=>
array(3) {
["error"]=>
string(27) “Failed to connect to server”
["errno"]=>
int(10060)
["errstr"]=>
string(185) “A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
”
}
["helo_rply"]=>
NULL
}
["to"]=>
array(1) {
[0]=>
array(2) {
[0]=>
string(22) “balasubrcn{at]yahoo.co[dot}in"
[1]=>
string(0) “”
}
}
The SMTP debugging output is shown below:
SMTP -> ERROR: Failed to connect to server: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
(10060)
@bala: I’m guessing localhost won’t work unless you have a local mailserver installed. Do you have a firewall on the machine? Or some anti-virus program that scans outgoing mail? Sounds like a problem along those lines to me, but I’m just guessing.
If you open a command prompt and type “telnet servername 25″ then hit enter, can you connect to the various mail servers you’re trying? If not, then that’s where the problem lies. If you can, it could be an Apache config issue, or a missing module. I’m not really sure.
Thanks Callum.
I have disabled my firewall and antivirus temporarily but I am not able to telnet to the mail servers. Guess the localhost needs a local mailserver configured.
Thanks again for the prompt reply.
~Bala
@bala: If you’ve disabled firewall and antivirus, my guess it that your ISP blocks port 25. It’s very common for domestic ISPs to block the port to prevent spam. I’m guessing you’re hosting this on a home machine on ADSL / Cable / etc.
I’d suggest trying an alternate port number for one of the mail servers. Or, use your ISP’s mail server. If that is ComCast and you can’t telnet to their SMTP server on port 25, there is a problem somewhere.
It’s not necessary to install a mailserver on your machine. In fact, that won’t move you forward because then your local mailserver won’t be able to get out on port 25 either!
Thanks Callum.
You are right, my ISP blocks mail relay through port 25. I connected to my schools network and I was able to send mails through port 25.
I installed your wp-mail-smtp plugin and I am having the following error when I try testing it. I am using WordPress 2.3.3 and my hosting is with yahoo. Any ideas? Please help! below is message from the test:
Test Message Sent
The result was:
bool(false)
The full debugging output is shown below:
object(phpmailer)(39) {
["Priority"]=>
int(3)
["CharSet"]=>
string(5) “UTF-8″
["ContentType"]=>
string(10) “text/plain”
["Encoding"]=>
string(4) “8bit”
["ErrorInfo"]=>
string(0) “”
["From"]=>
string(21) “support@wordpress.com”
["FromName"]=>
string(7) “Support”
["Sender"]=>
string(0) “”
["Subject"]=>
string(0) “”
["Body"]=>
string(0) “”
["AltBody"]=>
string(0) “”
["WordWrap"]=>
int(0)
["Mailer"]=>
string(4) “mail”
["Sendmail"]=>
string(18) “/usr/sbin/sendmail”
["PluginDir"]=>
string(0) “”
["Version"]=>
string(4) “1.73″
["ConfirmReadingTo"]=>
string(0) “”
["Hostname"]=>
string(0) “”
["Host"]=>
string(9) “localhost”
["Port"]=>
int(25)
["Helo"]=>
string(0) “”
["SMTPAuth"]=>
bool(false)
["Username"]=>
string(0) “”
["Password"]=>
string(0) “”
["Timeout"]=>
int(10)
["SMTPDebug"]=>
int(2)
["SMTPKeepAlive"]=>
bool(false)
["smtp"]=>
NULL
["to"]=>
array(0) {
}
["cc"]=>
array(0) {
}
["bcc"]=>
array(0) {
}
["ReplyTo"]=>
array(0) {
}
["attachment"]=>
array(0) {
}
["CustomHeader"]=>
array(0) {
}
["message_type"]=>
string(0) “”
["boundary"]=>
array(0) {
}
["language"]=>
array(0) {
}
["error_count"]=>
int(0)
["LE"]=>
string(1) ”
”
}
The SMTP debugging output is shown below:
@chick: There’s no clues in your current output, can you post the SMTP debugging output as well?
As an aside, you need to upgrade to WordPress 2.6.2. 2.3.3 has known security issues, it is only a matter of time before your site is exploited.
Hi Callum. Thanks for your reply. That is as far as it goes with the test result. No SMTP debugging output shows