Created
September 22, 2012 09:50
-
-
Save kinopyo/3765702 to your computer and use it in GitHub Desktop.
Bash test send mail.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
fromAddr="[email protected]" | |
toAddr="[email protected]" | |
subjString="subject ha nihongo ng!?" | |
bodyString="hello how are you" | |
echo -e "From: <${fromAddr}>\nTo: <${toAddr}>\nSubject:${subjString}\n\n${bodyString}" | /usr/sbin/sendmail -t ${toAddr} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment