[Techtalk] Mail a file with a script using pop3

Conor Daly conor.daly-linuxchix at cod.homelinux.org
Sat Oct 6 19:45:45 UTC 2007

If you have your machine set up to send email via your ISP, it should be
as simple as:

mutt -s "backup file" -a <filename> you at example.com < /dev/null

This should send an email with subject "backup file" with <filename> as an
attachment to you at example.com

OTOH, if your system is not already set up, you'll have to set it up to
use your ISP's smtp server as its 'smart host'.  How to do this depends on
what mail transport agent your system is using and on what tools your
distro provides to configure it.


On Sat, Oct 06, 2007 at 10:17:30AM -0700 or so it is rumoured hereabouts, 
lois at brasshat.net thought:
> Hellos,
> i would like to have a very simple backup. I want to email a specific file
> once a day to my email account. But i do not have a mail server running so
> would have to use POP or IMAP.
> Anyone got a script for that handy?
> Thankies!
> x Lois x
> _______________________________________________
> Techtalk mailing list
> Techtalk at linuxchix.org
> http://mailman.linuxchix.org/mailman/listinfo/techtalk

Conor Daly <conor.daly at cod.homelinux.org>
Version: 3.1
GCS/G/S/O d+(-) s:+ a+ C++(+) UL++++ US++ P>++ L+++>++++ E--- W++ !N
PS+ PE Y+ PGP? tv(-) b+++(+) G e+++(*) h-- r+++ z++++ 
http://www.geekcode.com/ http://www.ebb.org/ungeek/

More information about the Techtalk mailing list