[EMAIL PROTECTED] wrote:
> I was looking at the Mail::Sendmail module from CPAN and I did not
> find anything that showed printing a body.  How do I print a body of
> text data from a variable?

I haven't used Mail::Sendmail, but it looks like the message body goes in
the Message entry of the hash passed to sendmail().

[snip]
>         sendmail (%mailman) or die $Mail::Sendmail::error;
>         print %mailman <<EO_SIG;
>         EDM foreign tapes were found, \n, print OUT "@ftapes"
>         EO_SIG;

Erm, what are those last 3 lines supposed to be? That won't compile.

Anyway, build up your message in a string and assign it to $mailman{Message}
before calling sendmail(). That's what sends the message.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to