Topics:
DVR
nvrec
Mplayer
Links
Misc
Commands
Humor
New user
uploaded files
|
(linux_command_line)-> (Parent)->Or call from a Korn shell script |
submited by Emkay Wed 07 Oct 09 Edited Mon 19 Oct 09 |
#!/bin/ksh
maildate=$(date +"%H:%M:%S")
print "From: your-email@domain.com" > mail.txt ## don't forget to escape the @
print "Date: "${maildate}" >> mail.txt
print "To: $email" >> mail.txt
print "Subject: $subject" >> mail.txt
print "" >> mail.txt
print "$body" >> mail.txt
sendmail -v your-email@domain.com < mail.txt
|
Add comment or question...:
|