daily pastebin goal
61%
SHARE
TWEET

Untitled

a guest Apr 21st, 2018 196 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $mail -s "Some random subject" -a "From: some@mail.tld" to@mail.tld
  2.    
  3. mail -s Subject -S from=sender@example.com recipient@example.com
  4.    
  5. echo 'my message blablanSecond line (optional of course)' |
  6. mail -s "Your message title"
  7. -r 'Your full name<yourSenderAdress@yourDomain.abc>'
  8. -Sreplyto="yourReplyAdressIfDifferent@domain.abc"
  9. destinatorEmail@destDomain.abc[,otherDestinator@otherDomain.abc]
  10.    
  11. apt-get install mailutils
  12.    
  13. $mail -s "Subject" destination@example.com
  14.  From: Joel <joel@example.com>
  15.  
  16.  Hi!
  17.  .
  18.    
  19. -aFrom:Servername-Server@mydomain.com
  20.    
  21. cat /root/Reports/ServerName-Report-$DATE.txt | mail -s "Server-Name-Report-$DATE" myemailadress@mydomain.com -aFrom:Servername-Server@mydomain.com
  22.    
  23. echo "This is the main body of the mail" | mail -s "Subject of the Email" recipent_address@example.com -- -f from_user@example.com -F "Elvis Presley"
  24.    
  25. echo "This is the main body of the mail" | mail -s "Subject of the Email" recipent_address@example.com -aFrom:"Elvis Presley<from_user@example.com>"
  26.    
  27. echo "Sample body" | mail -s "Test email" from=sender-addrs@example.com recepient-addres@example.com
  28.    
  29. $ echo -e "testing email via yourisp.com from command linennsent on: $(date)" | mailx -r "Foghorn Leghorn <sender@yourisp.com>" -s "test cli email $(date)" -- recipient@somedomain.com
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top