Advertisement
Guest User

Untitled

a guest
Jul 3rd, 2017
566
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.05 KB | None | 0 0
  1. export REPLYTO=cms-replies@example.com
  2. mail -aFrom:cms-sends@example.com -s 'Testing'
  3.  
  4. export REPLYTO=cms-replies@example.com
  5. mail -aFrom:cms-sends@example.com -s 'Testing'
  6.  
  7. export REPLYTO=cms-replies@example.com
  8. mail -aFrom:cms-sends@example.com -s 'Testing'
  9.  
  10. mail -s "Subject" user@address.com -- -f from@address.com < body
  11.  
  12. echo "Hello there" | mail -s "testing" -r sender@company.com recipient@company.com
  13.  
  14. mail
  15.  
  16. mail -s "$(echo -e "This is the subjectnFrom: Paula <johny@paula.com>n
  17. Reply-to: 1232564@yourserver.comnContent-Type: text/htmln")"
  18. milas.josh@gmail.com < htmlFileMessage.txt
  19.  
  20. mail -s "$SUBJECT" $MAILTO -- -F $MAILFROM -f ${MAILFROM}@somedomain.com
  21.  
  22. echo test | mail -s "test" example@example.com -- -F'Some Name<example2@example.com>' -t
  23.  
  24. mail to-addr ... -sendmail-options ...
  25.  
  26. mail recepient@example.com -f from@example.com
  27.  
  28. mail -s "Subject" user@address.com -- -f from@address.com
  29.  
  30. apt-get install heirloom-mailx
  31.  
  32. update-alternatives --config mailx
  33.  
  34. mail -s "Testing from & replyto" -r "sender <sender@example.com>" -S replyto="sender@example.com" recipient@example.net < <(echo "Test message")
  35.  
  36. echo "This is the body of the mail" | mail -s 'This is the subject' '<receiver-id1@email.com>,<receiver-id2@email.com>' -- -F '<SenderName>' -f '<from-id@email.com>'
  37.  
  38. echo "email body" | mail -s "Subject here" -r from_email_address email_address_to
  39.  
  40. echo "hi root"|mail -rsawrub@testingdomain.org -s'testinggg' root
  41.  
  42. sudo apt-get install heirloom-mailx
  43.  
  44. sudo vim /etc/ssmtp/ssmtp.conf
  45. mailhub=smtp.gmail.com:587
  46. FromLineOverride=YES
  47. AuthUser=???@gmail.com
  48. AuthPass=???
  49. UseSTARTTLS=YES
  50.  
  51. sender='send@domain.com'
  52. recipient='recipient@domain.com'
  53. zipfile="results/file.zip"
  54. today=`date +%d-%m-%Y`
  55. mailSubject='My subject on the '$today
  56. read -r -d '' mailBody << EOM
  57. Find attached the zip file.
  58.  
  59. Regards,
  60. EOM
  61. mail -s "$mailSubject" -r "Name <$sender>" -S replyto="$sender" -a $zipfile $recipient < <(echo $mailBody)
  62.  
  63. export EMAIL=myfrom@example.com
  64. export REPLYTO=myreplyto@example.com
  65. mutt -s Testing chris@example.org
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement