J
jim
Hello,
I am having a problem w/SendMail reporting: " No recipient addresses
found in header".
Funny thing is though, I properly recieve the email message.
Thanks for your help.
-jim
Here is the code:
sub my_send_mail
{
local($fromuser, $touser, $subject, $messagebody) = @_;
local($old_path) = $ENV{"PATH"};
$ENV{"PATH"} = "";
$ENV{ENV} = "";
open(SENDMAIL, "| /bin/sendmail -t -n") || &web_error ("Unable to open
sendmail");
$ENV{"PATH"} = $old_path;
print SENDMAIL "To: $touser\n";
print SENDMAIL "From: $fromuser\n";
print SENDMAIL "Subject: $subject\n\n";
print SENDMAIL "$messagebody\n";
close(SENDMAIL);
}
I am having a problem w/SendMail reporting: " No recipient addresses
found in header".
Funny thing is though, I properly recieve the email message.
Thanks for your help.
-jim
Here is the code:
sub my_send_mail
{
local($fromuser, $touser, $subject, $messagebody) = @_;
local($old_path) = $ENV{"PATH"};
$ENV{"PATH"} = "";
$ENV{ENV} = "";
open(SENDMAIL, "| /bin/sendmail -t -n") || &web_error ("Unable to open
sendmail");
$ENV{"PATH"} = $old_path;
print SENDMAIL "To: $touser\n";
print SENDMAIL "From: $fromuser\n";
print SENDMAIL "Subject: $subject\n\n";
print SENDMAIL "$messagebody\n";
close(SENDMAIL);
}