This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.
For more information, see this announcement post . Click the X in the top right-corner of this box to dismiss this message.
Old posts that have not been replied to for several years.
Freez
Voice
Posts: 10 Joined: Tue Aug 24, 2004 2:01 pm
Post
by Freez » Mon Sep 06, 2004 12:15 pm
Hi!
I have write an tcl script that create an html file. Now a would like to mail that file. This is my code
Code: Select all
exec mail -s $subject $to_address < $attachement
It works but the contect of $attachement would be the boddy of the mail. How can i added it as an attachement?
Than you!
Sorry for me bad english
user
Posts: 1452 Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway
Post
by user » Mon Sep 06, 2004 4:14 pm
Freez wrote: Code: Select all
exec mail -s $subject $to_address < $attachement
It works but the contect of $attachement would be the boddy of the mail. How can i added it as an attachement?
1) pick some encoding (
MIME /
UUEncode )
2) encode the attachment
3) add the appropriate header(s) and the encoded string to the body of the mail.
4) done.
Have you ever read "The Manual"?