Nov 23, 2000, 12:29 PM
Post #2 of 3
Re: Using here documents AND sendmail?
[In reply to]
You could use something like the following code below.
This way you can create the whole body of the
email like you were talking about and send it
<BLOCKQUOTE><font size="1" face="Arial,Helvetica,sans serif">code:</font><HR>
# Set the body of the email message
$body = <<HERE;
Enter anything you want here.
How ever you type it it will show in the email.
# Send out the email
print MAIL "To: $email\n";
print MAIL "From: $from\n";
print MAIL "Subject: $subject\n\n";
print MAIL $body;
Hope this helps.
[This message has been edited by CuzDesign (edited 11-23-2000).]