
CuzDesign
Deleted
Nov 23, 2000, 12:29 PM
Post #2 of 3
(246 views)
|
|
Re: Using here documents AND sendmail?
[In reply to]
|
Can't Post
|
|
Hello, 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 at once. <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. HERE # Send out the email open(MAIL,"|$mailprog -t"); print MAIL "To: $email\n"; print MAIL "From: $from\n"; print MAIL "Subject: $subject\n\n"; print MAIL $body; close MAIL; </pre><HR></BLOCKQUOTE> Hope this helps. Regards, Ray [This message has been edited by CuzDesign (edited 11-23-2000).]
|