Hi Jim.
Perhaps this is the problem. I tried using the recipe from Oreilly's Perl Cookbook, but still get the same results--an empty email:
$mailer = Mail::Mailer->new("sendmail");
$mailer->open({ From => $fromaddress,
To => $toaddress,
Subject => $subject,
})
or die "Can't open: $!\n";
print $mailer $body;
$mailer->close();
I apologize in advance for my ignorance, but I am not sure where to put the "print $mailer $body;" and the "$mailer->close();" lines.
From what I read, I thought I was to put the "$mailer->close();" line at the end of the script, but I'm not sure where to put the "$body" line. I think my problem is most likely not getting a handle on my object.
Thanks for your help/responses.
-Chris
|