Advertisement
Guest User

Untitled

a guest
Apr 3rd, 2017
505
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. # -c = Cc, 'someone@example.com,somebody@example.com'
  6. # -b = Bcc, 'someone@example.com,somebody@example.com'
  7. # -s = Subject
  8. # -S = variable key=value
  9.  
  10. echo "This is the message body and contains the message" | mailx -v -r talkingmoose@hotmail.com -c "bill.smith@jamf.com" -s "This is the subject" -S smtp="smtp-mail.outlook.com:587" -S smtp-use-starttls -S smtp-auth=login -S smtp-auth-user="talkingmoose@hotmail.com" -S smtp-auth-password="P@55w0rd" -S nss-config-dir=/etc/pki/nssdb/ -S HOME=/tmp -S ssl-verify=ignore bill@talkingmoose.net
  11.  
  12. exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement