⇤ ← Revision 1 as of 2013-06-24 02:06:16
Size: 392
Comment:
|
← Revision 2 as of 2013-07-21 01:12:24 ⇥
Size: 748
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 17: | Line 17: |
== Send web page attached email == {{{#!highlight bash #!/bin/sh # gets web page /usr/bin/wget http://www.example.net/page.html -O /tmp/page.html # sends email body with attached web page /bin/cat /home/userx/mailBody.txt | /bin/mail -a /tmp/page.html -s "Subject X" destination1@example.com destination2@example.com destination3@example.com }}} |
Unix mail command
It allows us to send a command from a UNIX console.
Sample usage:
mail -s "Mail subject" destination.email@example.net
- Write down the mail message
- Press CTRL+D to end the message and send the mail.