Page 1 of 1

Confirm that message was sent

Posted: Fri Nov 30, 2007 12:14 pm
by Pate
Hey,

Using PHP5 and Swiftmailer 3.3.2.

Lately I'm experiencing some issues when sending emails. It's random as far as I see it, so issue is most likely somewhere on the server. Until this is resolved, I need a way to verify if a message was sent or not.

I'm using catch() and get the error Swift_ConnectionException. As far as I understand the documentation this means no message should have been sent but it is.

Is there something in $swift that I can use to confirm the message was sent or not?

Posted: Fri Nov 30, 2007 3:20 pm
by infolock
I'm not 100% sure you can do this on the fly with PHP. The reason is because once PHP has determined that the mail function executed without any errors, it exits and leaves the mail server to deal with sending the email out. You can have a que process run that checks to see if emails are just sitting on the server and report in a seperate admin screen though, which is what I normally do. Sorry man, that's a tough one cuz I've had the same problems myself.