Advertisement
Guest User

Untitled

a guest
Apr 3rd, 2017
508
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. # -v = verbose
  4. # -r = From address
  5. # -s = Subject
  6. # -S = variable key=value
  7.  
  8. echo "This is the message body and contains the message" | mailx -v -r [email protected] -c "[email protected]" -s "This is the subject" -S smtp="smtp-mail.outlook.com:587" -S smtp-use-starttls -S smtp-auth=login -S smtp-auth-user="[email protected]" -S smtp-auth-password="P@55w0rd" -S nss-config-dir=/etc/pki/nssdb/ -S HOME=/tmp -S ssl-verify=ignore [email protected]
  9.  
  10. exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement