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