Ben-iNetFx Posted June 28, 2008 Share Posted June 28, 2008 Since upgraded to 3.6.2 - emails can't be sent if I have the "PHPMail()" type selected rather than SMTP. After a little bit of debugging, it seems to be an issue with the updated PHPMailer library included in 3.6.2 (overwriting with the old one fixes it). Is anyone else having this issue and getting the error "Could not instantiate mail function."? 0 Quote Link to comment Share on other sites More sharing options...
efisher Posted July 1, 2008 Share Posted July 1, 2008 Since upgraded to 3.6.2 - emails can't be sent if I have the "PHPMail()" type selected rather than SMTP. After a little bit of debugging, it seems to be an issue with the updated PHPMailer library included in 3.6.2 (overwriting with the old one fixes it). Is anyone else having this issue and getting the error "Could not instantiate mail function."? Odd... I'm having the exact opposite problem. I can send with PHPMail(), but not with SMTP. Was working just before the update to 3.6.2 (from 3.6.1), but not after. I get: Email Sending Failed - SMTP Error: Could not connect to SMTP host. It doesn't matter whether or not I use a username/password, I can't seem to use any mail server anymore. 0 Quote Link to comment Share on other sites More sharing options...
Ben-iNetFx Posted July 1, 2008 Author Share Posted July 1, 2008 I get that error if I use "localhost" - if I put in the FQN it works fine (to the same server!) 0 Quote Link to comment Share on other sites More sharing options...
efisher Posted July 1, 2008 Share Posted July 1, 2008 I get that error if I use "localhost" - if I put in the FQN it works fine (to the same server!) Unfortunately, that didn't work for me. Just tried it. Either way it fails. According to the debug logs, it is forced to use SMTP AUTH regardless if you specify a username/password. In the past, if you didn't specify it worked. Now, I may be forced to setup SMTP auth for local mail relay. What a PITA. I've already asked support about it. Hopefully there is something else I can do. 0 Quote Link to comment Share on other sites More sharing options...
dutchnet Posted July 1, 2008 Share Posted July 1, 2008 same here. It used to work with version 3.6.1 after upgrading to 3.6.2. I cannot send mail anymore with or without username in smtp mail. I get: Email Sending Failed - SMTP Error: Could not connect to SMTP host. the smtp host is fully operation and the firewall is properly configured, if I change localhost to another mail server with a fully qualified host name I get the same error message Just checked but phpmail works for me 0 Quote Link to comment Share on other sites More sharing options...
efisher Posted July 2, 2008 Share Posted July 2, 2008 Working with Matt, he suggested that for now I just replace the class.phpmailer.php file with the one from 3.6.1. I did that and SMTP email (without authentication) is working again. 0 Quote Link to comment Share on other sites More sharing options...
rmccny Posted July 3, 2008 Share Posted July 3, 2008 The class.phpmailer is not correctly forming the e-mail To: address sent to the remote server. I enabled trace logs on my mail server and here's what I noticed: SENT: RCPT TO:<SteveWhite<d*****s@r****y.com> RECEIVED: 555 5.5.2 Syntax Error 32si583632ugf.51 Notice the incorrect formatting of the RCPT command. It should look like: SENT: RCPT TO:SteveWhite <d*****s@r****y.com> Replacing class.phpmailer with 3.6.1 cured the problem. I'm cross-posting this to the bigs forum. 0 Quote Link to comment Share on other sites More sharing options...
DeanClinton Posted July 3, 2008 Share Posted July 3, 2008 I tried replacing the file, and it made no difference to me.. I still get the sending failed thing 0 Quote Link to comment Share on other sites More sharing options...
DeanClinton Posted July 3, 2008 Share Posted July 3, 2008 Ok, after re-replacing the file it seems to be working. so there's a problem with the phpmailer file thats included in 3.6.2 0 Quote Link to comment Share on other sites More sharing options...
lokis Posted July 11, 2008 Share Posted July 11, 2008 Oh thanks, this problem bothered me A LOT! It's my first time using WHMCS, I thought I was doing something wrong 0 Quote Link to comment Share on other sites More sharing options...
lokis Posted July 12, 2008 Share Posted July 12, 2008 now I`m getting another error, it was sending email OK, and then it suddenly stopped. It gives this error: Email Sending Failed - ....@.... (User ID: 1 - Subject: Welcome) any ideas? 0 Quote Link to comment Share on other sites More sharing options...
MatrixServers Posted May 11, 2009 Share Posted May 11, 2009 is any one having the same problem that i am having in v4 with emails sent in plain gibberish form. I did a bit of reading in this forum and replaced the v4 class.phpmailer.php with v3.8.1 and seems to be okay for now. Don't know if any side affects will arrive or why in v4 its not preforming as well. Matt, v4 is amazing in style and programming. But can you shed some light on this subject. 0 Quote Link to comment Share on other sites More sharing options...
bubbasheeko Posted May 28, 2009 Share Posted May 28, 2009 Matt, I second matrixserver - I am experiencing the same thing. 0 Quote Link to comment Share on other sites More sharing options...
msmom Posted May 28, 2009 Share Posted May 28, 2009 I did and it turned out that the email password the system thought I had was incorrect; I changed the password for that email address and changed it in WHMCS and the problem was resolved. 0 Quote Link to comment Share on other sites More sharing options...
Tekhaus Posted May 30, 2009 Share Posted May 30, 2009 is any one having the same problem that i am having in v4 with emails sent in plain gibberish form. I did a bit of reading in this forum and replaced the v4 class.phpmailer.php with v3.8.1 and seems to be okay for now. Don't know if any side affects will arrive or why in v4 its not preforming as well. Matt, v4 is amazing in style and programming. But can you shed some light on this subject. YES! I worked with Matt a fair bit on this and it wasn't really resolved - I had to resort to using php mail() instead of smtp. I'm still keen for a proper fix as 3.8.1 worked fine but 4.0 just doesn't work for me. 0 Quote Link to comment Share on other sites More sharing options...
rldev Posted July 15, 2009 Share Posted July 15, 2009 Any word on this? I started getting this error. 0 Quote Link to comment Share on other sites More sharing options...
Division Posted July 15, 2009 Share Posted July 15, 2009 I am having problems sending mail via SMTP.... 0 Quote Link to comment Share on other sites More sharing options...
pankaj4learn Posted September 30, 2012 Share Posted September 30, 2012 Hi, i used whmcs previously but suddenly its stop sending mail.i m gettimg this error "Sending Failed - SMTP Error: Could not connect to SMTP host. " i check my user id and password thats working fine but in whmcs same id & password i used but getting error. Please anyone help me.how to resolve this issue. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.