Hi Philip, On Wed, 01 Dec 2010 09:38:24 +0000, Philip Hands <phil@hands.com> wrote: > On Wed, 1 Dec 2010 03:01:47 +0100, first last <arian.kuschki@googlemail.com> wrote: > > msmtp includes (at last in some distros I think) a script that enqeues mails > > when you are offline and sends them when you are online. It is a drop-in > > replacement for sendmail. > > masqmail has this functionality built in, and can be configured to > notice the internet connection going up and down, and kick the queue as > you go online (although for some reason I cannot persuade it that my > OpenVPN is online, even when it is, so have kludged it with cron kicking > the queue regularly) Thank you for your thoughts. That's interesting but I really want to known how to do it with emacs built-in smtpmail.el. If it can't do it, then I'll discard it in favor of either msmtp or this one. Regards /Xavier