You might try Mail::Sender then. It can give you a tied "filehandle" that you can print the message into.
use Mail::Sender; ... my $sender = Mail::Sender->new(); $sender->Open({to => ..., from => ..., subject => ..., ...}); local *SENDMAIL = $sender->GetHandle(); print SENDMAIL "Hello there\nThis is the message!"; close SENDMAIL;
Jenda
Always code as if the guy who ends up maintaining your code
will be a violent psychopath who knows where you live.
-- Rick Osborne
Edit by castaway: Closed small tag in signature
In reply to Re: Re: Re: Sendmail problems
by Jenda
in thread Sendmail problems
by peterr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |