I am really struggling with sendmail.
I have an array (@data) that when assigned to $content prints fine and obviously has a string in it. For some reason it does not go through with the sendmail. If I append a string to $content the appended string goes through and appears in the email,, but still not the remainder of the variable. $PARAMS{update} is just a check box that is checked and submitted. $list interpolates fine.
Any ideas pleas?
JOn
for (@data){
push(@body,$$_{1}.'--'.$$_{0}.'\n');
}
$content=join("",@body);
%mail = (
SMTP => 'smtp.wherever.com',
from => 'tclark@whereverl.com',
to => "$list",
subject => 'Firefly updated',
'content-type' => 'text/html; charset="iso-8859-1"',
);
$mail{body} = $content;
if ($PARAMS{update} ne ""{
sendmail(%mail) || print "Error: $Mail::Sendmail::error\n";
}
I have an array (@data) that when assigned to $content prints fine and obviously has a string in it. For some reason it does not go through with the sendmail. If I append a string to $content the appended string goes through and appears in the email,, but still not the remainder of the variable. $PARAMS{update} is just a check box that is checked and submitted. $list interpolates fine.
Any ideas pleas?
JOn
for (@data){
push(@body,$$_{1}.'--'.$$_{0}.'\n');
}
$content=join("",@body);
%mail = (
SMTP => 'smtp.wherever.com',
from => 'tclark@whereverl.com',
to => "$list",
subject => 'Firefly updated',
'content-type' => 'text/html; charset="iso-8859-1"',
);
$mail{body} = $content;
if ($PARAMS{update} ne ""{
sendmail(%mail) || print "Error: $Mail::Sendmail::error\n";
}