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: Mass_Email@xxxxxxxxxx.com\r\nReply-To: ". $_SESSION["email"]."\r\n";
	$headers .= "Bcc: " .$recipients;
mail("", $subject, $message, $headers);

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.