email queuing in android

evolu used Ask the Experts™
I am  writing send-mail program in android. it is working OK.
but in case, if we have problem in connecting smtp server or it might bounce back for some other reason..
(My question here  is )
if the sent mail is bounced back for some reason, how to judge inside the android code for the smtp errors and retry sending it later...
several times or for specified tries till it reaches the receiver..
Can any  one  share the code for  queuing emails.. and handling smttp errors. etc.
Thanks in advance
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
nociSoftware Engineer
Distinguished Expert 2018

hm. there are a lot of open source samples:

pine (or derivatives),  thunderbird  ( all MUA  mail user agents )
qmail, exim, postgres, sendmail  (all mta's)  that could be setup of listening to localhost and forward to a smarthost.

It mostly revolves about storing the file in some directory and starting a timer to retry sending the file again.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial