Guest User

Untitled

a guest
Feb 6th, 2018
351
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1. mailx -s "This is all she wrote" < /dev/null something@fdsfds.com
  2. or
  3. mail -s "hfdsfds" something@fdsfds.com
  4.  
  5. touch $HOME/.mailrc
  6.  
  7. #---------------------------#
  8. # Setting mailx for gmail!! #
  9. #---------------------------#
  10. set smtp-use-starttls
  11. set smtp-auth=login
  12. set smtp=smtp://smtp.gmail.com:587
  13. set from="your_gmail_username@gmail.com"
  14. set smtp-auth-user=your_gmail_usernameg@gmail.com
  15. set smtp-auth-password=your_gmail_password
  16. set ssl-verify=ignore
  17. set nss-config-dir=/etc/ssl/certs
  18.  
  19. echo "Testing, Testing, Testing" | mailx -s "My test..." someone@whatever.com
  20.  
  21. andrew@ilium~$ echo "Testing, Testing, Testing" | mailx -v -s "My test..." xxx@gmail.com
  22. Resolving host smtp.gmail.com . . . done.
  23. Connecting to 173.194.72.108:587 . . . connected.
  24. 220 smtp.gmail.com ESMTP u64sm18738348pfa.86 - gsmtp
  25. >>> EHLO ilium.andrews-corner.org
  26. 250-smtp.gmail.com at your service, [203.158.63.248]
  27. 250-SIZE 35882577
  28. 250-8BITMIME
  29. 250-STARTTLS
  30. 250-ENHANCEDSTATUSCODES
  31. 250-PIPELINING
  32. 250-CHUNKING
  33. 250 SMTPUTF8
  34. >>> STARTTLS
  35. 220 2.0.0 Ready to start TLS
  36. >>> EHLO ilium.andrews-corner.org
  37. 250-smtp.gmail.com at your service, [203.158.63.248]
  38. 250-SIZE 35882577
  39. 250-8BITMIME
  40. 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH
  41. 250-ENHANCEDSTATUSCODES
  42. 250-PIPELINING
  43. 250-CHUNKING
  44. 250 SMTPUTF8
  45. >>> AUTH LOGIN
  46. 334 VXNlcm5hbWU6
  47. >>> YW5kcmV3LmRhdmlkLnN0cm9uZ0BnbWFpbC5jb20=
  48. 334 UGFzc3dvcmQ6
  49. >>> Pz8lPTQyMDk1WnhpdXlxbQ==
  50. 235 2.7.0 Accepted
  51. >>> MAIL FROM:<xxx@gmail.com>
  52. 250 2.1.0 OK u64sm18738348pfa.86 - gsmtp
  53. >>> RCPT TO:<xxx@gmail.com>
  54. 250 2.1.5 OK u64sm18738348pfa.86 - gsmtp
  55. >>> DATA
  56. 354 Go ahead u64sm18738348pfa.86 - gsmtp
  57. >>> .
  58. 250 2.0.0 OK 1455275914 u64sm18738348pfa.86 - gsmtp
  59. >>> QUIT
  60. 221 2.0.0 closing connection u64sm18738348pfa.86 - gsmtp
  61. andrew@ilium~$
Add Comment
Please, Sign In to add comment