Results 1 to 3 of 3
I have a mail script that is working, and will be modified but need to have it attach a file or the text from the file. This is my test ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 03-23-2006 #1
- Join Date
- Nov 2004
- Glacier, WA
This is my test script
// The message
$message = "Line 1\nLine 2\nLine 3";
// In case any of our lines are larger than 70 characters, we should use wordwrap()
$message = wordwrap($message, 70);
mail('firstname.lastname@example.org', 'My Subject', $message);
- 03-24-2006 #2
- 03-24-2006 #3
maybe i'm barking up the wrong tree here ..
mail -s "Hello world from for `hostname`" email@example.com < ~/<file_to_include>
Start typing away after the mail command and when you are done finish with a single dot (.) on a blank line to finish the message body.
You can also send email to users on your system: mail -s "test" <someusername>