druss
07-30-2003, 04:38 AM
i have a script that bulk sends the html document to all the subscribers with a feild that i enter. the thing is that when i send it the subject field is screwed after the first email.
for example, i would enter "This is my subject" in a form field. after the first email the rest end up with a subject "This" the rest gets cut out
This is the script that is sending the email
-------------------
open (MAIL, "| $mailprog >/dev/null");
print MAIL <<END;
To: $slot
From: $email
Subject: $name sends you a funnny picture - Make Me Laugh
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="$boundary"
--$boundary
Content-Type: text/html
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
END
open(code,"$templates/friend_email_pic.htm");
@code = <code>;
close(code);
s/\$name/$name/g for @code;
s/\$note/@note/g for @code;
s/\$pic/$pic/g for @code;
print MAIL "@code";
close(MAIL);
--------------------------------
Its quite wierd. as i do rerun the script after sending each email but the subject field is the only one stuffing up??
Any help is greatly appreciated
Thanks
Gozza
for example, i would enter "This is my subject" in a form field. after the first email the rest end up with a subject "This" the rest gets cut out
This is the script that is sending the email
-------------------
open (MAIL, "| $mailprog >/dev/null");
print MAIL <<END;
To: $slot
From: $email
Subject: $name sends you a funnny picture - Make Me Laugh
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="$boundary"
--$boundary
Content-Type: text/html
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
END
open(code,"$templates/friend_email_pic.htm");
@code = <code>;
close(code);
s/\$name/$name/g for @code;
s/\$note/@note/g for @code;
s/\$pic/$pic/g for @code;
print MAIL "@code";
close(MAIL);
--------------------------------
Its quite wierd. as i do rerun the script after sending each email but the subject field is the only one stuffing up??
Any help is greatly appreciated
Thanks
Gozza