Jump to content

internal server error while mass mailing


aaronlzw_21

Recommended Posts

Hi

 

i created a script to mass mail my clients via bcc field. whenever i sent, i will encounter a 500 internal server error, but the mail is stil sent. in the bcc field have about 50 addressees.

 

I tried sending 15 addresses at a time it will still give me the same error. Below are my codes. Any idea what's wrong?

 

 

$headers = "MIME-Version: 1.0" . "\r\n";
	$headers .= "Content-type:text/html;charset=iso-8859-1" . "\r\n";
	$headers .= "From: [email protected]\r\nReply-To: ". $_SESSION["email"]."\r\n";
	$headers .= "Bcc: " .$recipients;
mail("", $subject, $message, $headers);

 

Not the recipients list, just ~your~ email address, just so it has a value. Put it to a blackhole if you dont want 500 messages. Put Brobamas in there. Just as long as it has a valid value. See if the script works then. If it does then just use a blackhole address.

 

Just an idea cause BCC is Blind Carbon Copy. How can you have a carbon copy with no original? Just a maybe why.

 

 

HTH

Teamatomic

ic i get what you mean. ok i'll try it first THANKS!

 

I have tried but it still shows the same error. I did a test, some email are "dead" does it affect this problem? it does, anyway to catch this exception?

 

On the server log, the error was stated "Premature end ofscript headers". My server is running on php4.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.