Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # -v = verbose
- # -r = From address
- # -c = Cc, 'someone@example.com,somebody@example.com'
- # -b = Bcc, 'someone@example.com,somebody@example.com'
- # -s = Subject
- # -S = variable key=value
- 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
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement