PHP Classes

package SMTP E-mail function $smtp->error; donīt have value

Recommend this page to a friend!

      SMTP E-mail sending class  >  All threads  >  package SMTP E-mail function...  >  (Un) Subscribe thread alerts  
Subject:package SMTP E-mail function...
Summary:package SMTP E-mail function $smtp->error; donīt have value
Messages:2
Author:maria helena hernandez lopez
Date:2017-01-05 20:49:53
 

  1. package SMTP E-mail function...   Reply   Report abuse  
Picture of maria helena hernandez lopez maria helena hernandez lopez - 2017-01-05 20:49:53
I am using your package SMTP E-mail sending class

and the server for email have changue, the function $smtp->SendMessage

works fine, but i need the error when the email canīt not send

the function $smtp->error;

donīt have anything when the email have an error.

can you help me i need to save the error

thank you a lot for you help.

  2. Re: package SMTP E-mail function...   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2017-01-06 00:33:37 - In reply to message 1 from maria helena hernandez lopez
You set the debug variable to true and see the SMTP dialog. If the server rejects the message you will know but since there are no errors returned I suspect that the message is accepted but not delivered for some other reason.

I recommend that you use the MIME message class in conjunction with this class because it can compose the message properly with all the headers and bod structure.

phpclasses.org/emailmessage