Install paclink-unix
- Configure a single MTA
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
plu:use_cases [2016/09/23 13:16] gunn [Use Case 1: command-line movemail client] |
plu:use_cases [2016/09/25 15:20] gunn [Use Case 1: command-line movemail client] |
||
---|---|---|---|
Line 25: | Line 25: | ||
the command line ie. [[wp>Mail_(Unix) | Mail]] & [[wp>Mutt_(e-mail_client) | Mutt]]. | the command line ie. [[wp>Mail_(Unix) | Mail]] & [[wp>Mutt_(e-mail_client) | Mutt]]. | ||
- | * //mutt// and //mail// programs have similar syntax for the basic operation | + | * Examples using [[plu:email_client_config#mutt_and_mail]] in scripts or command line. |
- | * //mutt -x// will emulate the mailx compose mode | + | |
- | * Example using //mail// program | + | |
- | <code> | + | |
- | # send content of a file | + | |
- | mail -s "put subject line here" you@youremailid.com < file_name_of_content | + | |
- | # from command line or script | ||
- | echo “This will go into the body of the mail.” | mail -s “Hello world” you@youremailid.com | ||
- | </code> | ||
- | * Example using //mutt// program | ||
- | <code> | ||
- | mutt -s "put subject line here" you@youremailid.com someoneelse@whatever.com < file_name_of_content | ||
- | # mutt -c allows specifying Carbon Copy addresses | ||
- | </code> | ||
- | * Install //mutt//: | ||
- | <code> | ||
- | apt-get install mutt | ||
- | </code> | ||
- | * Install //mail//: | ||
- | <code> | ||
- | <apt-get install mailutils | ||
- | </code> | ||
===== Use Case 2: GUI or command line movemail client ===== | ===== Use Case 2: GUI or command line movemail client ===== | ||