Guest User

Untitled

a guest
Dec 18th, 2014
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. mailhub=smtp.gmail.com:465
  2. rewriteDomain=gmail.com
  3. AuthUser=username
  4. AuthPass=password
  5. FromLineOverride=YES
  6. UseTLS=YES
  7.  
  8.  
  9. Subject: Sent from a terminal!
  10.  
  11. ssmtp [email protected] < filename.txt
  12.  
  13. marco@dagobah:~$ mail -v [email protected]
  14. Subject: Hello World!
  15. This is an email to myself.
  16.  
  17. Hope all is well.
  18. .
  19. Cc:
  20.  
  21. apt-get install libio-socket-ssl-perl libnet-ssleay-perl sendemail
  22.  
  23. sendemail -f [email protected] -t [email protected] -u subject -m "message" -s smtp.gmail.com -o tls=yes -xu gmailaccount -xp gmailpassword
  24.  
  25. apt-get install mpack
  26.  
  27. mpack -s "file you wanted" ./data.pdf [email protected]
  28.  
  29. sudo apt-get install postfix
  30.  
  31. echo "test message" | mailx -s 'test subject' [email protected]
  32.  
  33. hanoo@hp_laptop% nc 127.0.0.1 25
  34. 220 hp_laptop.localdomain ESMTP Postfix
  35. EHLO man
  36. 250 hp_laptop.localdomain
  37. MAIL FROM: <[email protected]>
  38. 250 2.1.0 Ok
  39. 250 2.1.5 Ok
  40. data
  41. 354 End data with <CR><LF>.<CR><LF>
  42. This is the body of my mail,
  43. this is the second line...
  44. .
  45. 250 2.0.0 Ok: queued as 9C12E7F404
  46.  
  47. mail -s "subjet" -a "attchedfile_name" someone@dest_email.com
  48.  
  49. cat "afile" | mail -s "subject" someone@dest_email.com
  50.  
  51. sendmail -t receiver@example
  52.  
  53. mail [email protected] -s "Attached file" <<EOF
  54. Hi
  55.  
  56. ~| uuencode $HOME/filename.txt filename.txt
  57.  
  58. EOF
Advertisement
Add Comment
Please, Sign In to add comment