Advertisement
Guest User

Untitled

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