cancel
Showing results for 
Search instead for 
Did you mean: 

PHPmailer function stopped working...

andydg
Grafter
Posts: 46
Thanks: 10
Registered: ‎16-03-2010

PHPmailer function stopped working...

Hi, I use the phpMailer function to send mail from my website (on Hostopia), and have been for a long time.

Randomly this morning, I discovered nothing was being sent - with this error coming back 'Could not instantiate mail function.'

I haven't made any changes to code in quite a while (and it was working fine on Friday) - any ideas why suddenly not working?

I use the basic phpMailer - not with smtp, and has worked fine up till now ...

Thanks

Andy

** quick update

Have also tried my other two websites, which run under wordpress (so use other methods of mail processing) also failing to send messages ..

5 REPLIES 5
spraxyt
Resting Legend
Posts: 10,063
Thanks: 674
Fixes: 75
Registered: ‎06-04-2007

Re: PHPmailer function stopped working...

I'm getting the same error from PHPMailer version 5.2.16 using its PHP Mail() interface

Message could not be sent. Mailer Error: Could not instantiate mail function.

If I use PHPMailer with SMTP the message is apparently sent to localhost, but potentially isn't accepted by the mail server; it doesn't get delivered to Plusnet or gmail.

SERVER -> CLIENT: 250 2.0.0 u7UApc4I012916 Message accepted for delivery
CLIENT -> SERVER: QUIT
SERVER -> CLIENT: 221 2.0.0 web218c50.megawebservers.eu closing connection
Connection: closed
Message sent: date Tue, 30 Aug 2016 11:51:38 BST

Edit: Trying to use the sendmail interface also gives an error

Message could not be sent. Mailer Error: Could not execute: /usr/sbin/sendmail -t -i 

 

David
bobpullen
Community Gaffer
Community Gaffer
Posts: 16,887
Thanks: 4,979
Fixes: 316
Registered: ‎04-04-2007

Re: PHPmailer function stopped working...

Raised with Hostopia (ref: 3933885). Thanks for bringing it to our attention.

Bob Pullen
Plusnet Product Team
If I've been helpful then please give thanks ⤵

andydg
Grafter
Posts: 46
Thanks: 10
Registered: ‎16-03-2010

Re: PHPmailer function stopped working...

Thanks Bob, seems to be back up and running now.Smiley

bobpullen
Community Gaffer
Community Gaffer
Posts: 16,887
Thanks: 4,979
Fixes: 316
Registered: ‎04-04-2007

Re: PHPmailer function stopped working...

Thanks, Hostopia confirmed late yesterday that they'd fixed the problem. Everybody happy there are no residual issues?

Edit: Hmmm, I seem to be getting two copies of each email when I'm testing?

Bob Pullen
Plusnet Product Team
If I've been helpful then please give thanks ⤵

spraxyt
Resting Legend
Posts: 10,063
Thanks: 674
Fixes: 75
Registered: ‎06-04-2007

Re: PHPmailer function stopped working...

Yes, sending using PHP mail() directly and via PHPMailer works OK now. Sending with PHPMailer also works using sendmail and with SMTP to localhost. Smiley

This applies for messages sent to both Plusnet and gmail addresses.

Edit: And I get only the expected copies.

David