PHP Classes

Thanks

Recommend this page to a friend!

      MIME E-mail message sending  >  MIME E-mail message sending package blog  >  Fast PHP Mass Mail Sc...  >  All threads  >  Thanks  >  (Un) Subscribe thread alerts  
Subject:Thanks
Summary:Not tried yet but looks cool.
Messages:2
Author:Sanjay Maurya
Date:2013-09-19 17:03:16
Update:2013-09-20 01:46:53
 

  1. Thanks   Reply   Report abuse  
Picture of Sanjay Maurya Sanjay Maurya - 2013-09-19 19:42:35
Hey, thanks for your efforts on this.

I have few queries if you let me know.

Is there a way we can know bounced/failed email ids using your class?
Is there a way we can know SMTP server has sent your mail to said email ids?
I use PHPMailer class. I know my server supports SMTP and it is enabled. But when I use this class, I get success message but there are no emails to said ids. Will this happen with your class too?

Thanks,

  2. Re: Thanks   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2013-09-20 01:46:53 - In reply to message 1 from Sanjay Maurya
Yes, I may end up writing an article on that too.

Anyway, you can set the Return-Path header to an address where you want the bounced messages to go. Then you can use a POP3 class to retrieve and parse the bounced messages. There is an article about that here.

phpclasses.org/blog/package/2/post/ ...

SMTP servers do not send messages, they just receive messages. If you want to know if a mailed message sent to a SMTP server was resent to the final address by the mail server, it depends on the mail server, but AFAIK there is no standard solution that would work for all mail servers.

By default the SMTP class just queues the message in the local server. If you want the class to deliver the message to the destination mail server, you need to use the direct_delivery mode.

That will make the class communicate with the destination SMTP server directly, instead of relaying to the local mail server.

I just do not recommend that you use that because messages may take a long time to be accepted and you need to deal with temporary rejections.

Better relay it to the local mail server unless it is really important for your application when the destination mail server accepted the message.