Guest User

Untitled

a guest
Apr 21st, 2018
348
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.28 KB | None | 0 0
  1. $mail -s "Some random subject" -a "From: [email protected]" [email protected]
  2.  
  3.  
  4. echo 'my message blablanSecond line (optional of course)' |
  5. mail -s "Your message title"
  6. -r 'Your full name<[email protected]>'
  7. -Sreplyto="[email protected]"
  8.  
  9. apt-get install mailutils
  10.  
  11. $mail -s "Subject" [email protected]
  12. From: Joel <[email protected]>
  13.  
  14. Hi!
  15. .
  16.  
  17.  
  18. cat /root/Reports/ServerName-Report-$DATE.txt | mail -s "Server-Name-Report-$DATE" [email protected] -aFrom:[email protected]
  19.  
  20. echo "This is the main body of the mail" | mail -s "Subject of the Email" [email protected] -- -f [email protected] -F "Elvis Presley"
  21.  
  22. echo "This is the main body of the mail" | mail -s "Subject of the Email" [email protected] -aFrom:"Elvis Presley<[email protected]>"
  23.  
  24. echo "Sample body" | mail -s "Test email" [email protected] [email protected]
  25.  
  26. $ echo -e "testing email via yourisp.com from command linennsent on: $(date)" | mailx -r "Foghorn Leghorn <[email protected]>" -s "test cli email $(date)" -- [email protected]
Add Comment
Please, Sign In to add comment