How to cancel an outgoing email send via SMTP server?

Flow: 1) Write the Email 2) Press send 3) Put in some sort of QUEUE (Array of message objects?) 4) Setup some timer that would trigger after 10 seconds to loop trough the array and send the messages. If the user presses "Cancel" or "Delete" or something on the message before the timer is running.

How to cancel an outgoing email send via SMTP server?

I cant say im any familiar with this. You cant withdraw an email that has already been sent, that i am pretty sure of.

But what you can do, is setup some timed delay. i.e of 10 seconds before its shipped to the SMTP handler.

Flow: 1) Write the Email 2) Press send 3) Put in some sort of QUEUE (Array of message objects?) 4) Setup some timer that would trigger after 10 seconds to loop trough the array and send the messages.

If the user presses "Cancel" or "Delete" or something on the message before the timer is running. then delete the object from the array. and it wont send the message :)

Hope this helps!


Click Here to Visit

What's Your Reaction?

like
0
dislike
0
love
0
funny
0
angry
0
sad
0
wow
0