Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mailx -s "This is all she wrote" < /dev/null something@fdsfds.com
- or
- mail -s "hfdsfds" something@fdsfds.com
- touch $HOME/.mailrc
- #---------------------------#
- # Setting mailx for gmail!! #
- #---------------------------#
- set smtp-use-starttls
- set smtp-auth=login
- set smtp=smtp://smtp.gmail.com:587
- set from="your_gmail_username@gmail.com"
- set smtp-auth-user=your_gmail_usernameg@gmail.com
- set smtp-auth-password=your_gmail_password
- set ssl-verify=ignore
- set nss-config-dir=/etc/ssl/certs
- echo "Testing, Testing, Testing" | mailx -s "My test..." someone@whatever.com
- andrew@ilium~$ echo "Testing, Testing, Testing" | mailx -v -s "My test..." xxx@gmail.com
- Resolving host smtp.gmail.com . . . done.
- Connecting to 173.194.72.108:587 . . . connected.
- 220 smtp.gmail.com ESMTP u64sm18738348pfa.86 - gsmtp
- >>> EHLO ilium.andrews-corner.org
- 250-smtp.gmail.com at your service, [203.158.63.248]
- 250-SIZE 35882577
- 250-8BITMIME
- 250-STARTTLS
- 250-ENHANCEDSTATUSCODES
- 250-PIPELINING
- 250-CHUNKING
- 250 SMTPUTF8
- >>> STARTTLS
- 220 2.0.0 Ready to start TLS
- >>> EHLO ilium.andrews-corner.org
- 250-smtp.gmail.com at your service, [203.158.63.248]
- 250-SIZE 35882577
- 250-8BITMIME
- 250-AUTH LOGIN PLAIN XOAUTH2 PLAIN-CLIENTTOKEN OAUTHBEARER XOAUTH
- 250-ENHANCEDSTATUSCODES
- 250-PIPELINING
- 250-CHUNKING
- 250 SMTPUTF8
- >>> AUTH LOGIN
- 334 VXNlcm5hbWU6
- >>> YW5kcmV3LmRhdmlkLnN0cm9uZ0BnbWFpbC5jb20=
- 334 UGFzc3dvcmQ6
- >>> Pz8lPTQyMDk1WnhpdXlxbQ==
- 235 2.7.0 Accepted
- >>> MAIL FROM:<xxx@gmail.com>
- 250 2.1.0 OK u64sm18738348pfa.86 - gsmtp
- >>> RCPT TO:<xxx@gmail.com>
- 250 2.1.5 OK u64sm18738348pfa.86 - gsmtp
- >>> DATA
- 354 Go ahead u64sm18738348pfa.86 - gsmtp
- >>> .
- 250 2.0.0 OK 1455275914 u64sm18738348pfa.86 - gsmtp
- >>> QUIT
- 221 2.0.0 closing connection u64sm18738348pfa.86 - gsmtp
- andrew@ilium~$
Add Comment
Please, Sign In to add comment