Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2017
887
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. # Where will the mail seem to come from?
  2. rewriteDomain=my_internet_domain.uk
  3.  
  4. # Are users allowed to set their own From: address?
  5. # YES - Allow the user to specify their own From: address
  6. # NO - Use the system generated From: address
  7. FromLineOverride=YES
  8.  
  9. ssmtp address@example.com <<<$'Subject: testing 1...2...3'
  10.  
  11. /usr/lib/sendmail -oi -t <<____HERE
  12. Subject: testing
  13. To: recipient@example.net
  14.  
  15. Here we interpolate the shell variable $result
  16. ____HERE
  17.  
  18. ( printf "Subject: random numbernn"
  19. dd if=/dev/urandom bs=4 count=1 2>/dev/null | od -D -An ) |
  20. sendmail
  21.  
  22. claws-mail --compose-from-file filename
  23.  
  24. sudo apt-get update
  25. sudo apt-get install ssmtp
  26.  
  27. root=rpi3abc@gmail
  28. mailhub=smtp.gmail.com:465
  29. FromLineOverride=YES
  30. AuthUser=rpi3abc@gmail.com
  31. AuthPass=testing123
  32. UseTLS=YES
  33.  
  34. echo "Testing...1...2...3" | ssmtp myusername@gmail.com
  35.  
  36. echo "Message body." | mailx -s "Subject line" -a /path/attachment.txt -r "Sender's Name<sender@email.com>" -c recipient2@email.com recipient1@email.com
  37.  
  38. sendEmail -q -f "me@mail.com" -u "mySubject" -t "someone@mail.org" -s "my.smtp.com" -o tls=yes -xu "mySmtpUser" -xp "mySmtpPw" -m "myMessage"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement