Sending Mail from the CLI
Kristian Rink
kristian at zimmer428.net
Mon Feb 26 10:07:49 UTC 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
["Amichai Rotman" <amichai at iglu.org.il> @ Mon, 26 Feb 2007 11:26:41
+0200]
> I am connected to my home from work using an SSH terminal.
> I would like to compress a file and send it to an e-mail address from
> the CLI.
> How do I do that? I know it's possible....
It is, but your mileage might vary depending on how you want to do it:
- - Using an interactive session (IOW sending mails with attachments
_manually_), you simply should take a look at mutt+msmtp which features
all there is to have in terms of e-mail handling, and getting a basic
setup done should be easily done.
- - Using an automated approach of building and sending mails, you will
have to build valid e-mails using some sort of programming / scripting
language. Personally, I prefer the JavaMail API for right these
purposes, but i.e. the Python "email" module should have similar
functionalities.
Cheers,
Kristian
- --
Kristian Rink * http://zimmer428.net * http://flickr.com/photos/z428/
jab: kawazu at jabber.ccc.de * icq: 48874445 * fon: ++49 176 2447 2771
"One dreaming alone, it will be only a dream; many dreaming together
is the beginning of a new reality." (Hundertwasser)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFF4rF7cxBAPOA1m6wRAkMbAKCMEgF4S+AMsSopG4w7GGpgN9WZRgCfQ26l
6E3UkPIvx+IK2ZTJq83UFhU=
=GCFH
-----END PGP SIGNATURE-----
More information about the ubuntu-users
mailing list