Hi i am trying to send 5 mails in one additional processing, and it seems i just cant send more than one. my code is as follows:
<?

global $user;

if($user->uid)

{
if (module_exists('userpoints')) { $points = array( 'uid' => $user->uid, 'points' => 5, 'description' => 'For inviting people!', 'event' => 'invite', 'tid' => 34, 'moderate' => false);
}
}

$a=$form_values['submitted_tree']['email1'];
$b=$form_values['submitted_tree']['email2'];
$c=$form_values['submitted_tree']['email3'];
$d=$form_values['submitted_tree']['email4'];
$e=$form_values['submitted_tree']['email5'];

$firstname=$form_values['submitted_tree']['firstname'];

$firstnamea=$form_values['submitted_tree']['firstname1'];
$firstnameb=$form_values['submitted_tree']['firstname2'];
$firstnamec=$form_values['submitted_tree']['firstname3'];
$firstnamed=$form_values['submitted_tree']['firstname4'];
$firstnamee=$form_values['submitted_tree']['firstname5'];

$msg=$form_values['submitted_tree']['textarea_message'];

$bodyheadera="Dear ".$firstnamea.":"."\n".$firstname." invited you to join MyGivingPoint!"."\n"."\n";

$bodyheaderb="Dear ".$firstnameb.":"."\n".$firstname." invited you to join MyGivingPoint!"."\n"."\n";
if($msg!="")
{
$body=$firstname." says:'".$msg."'"."!"."\n"."\n";
}
$body=$body."Mygivingpoint.org is a website designed for young people ages 13 - 19 years. GivingPoint helps teens find their passion and connect to community activities that interest them most. And, we reward them and their favored nonprofits by giving grants to causes that matter to them. Teens can use this site to track their volunteer hours and download their civic transcripts. To learn more, please visit mygivingpoint.org/user to create an account!"."\n"."\n"."GivingPoint Team";

$bodya=$bodyheadera.$body;
$bodyb=$bodyheaderb.$body;

$mailkey = "reservation";
$subject = $firstname." invites you to join MyGivingPoint!";
$from = "webmaster@mygivingpoint.org";

drupal_mail($mailkey, $a, $subject, $bodya, $from, $headers=array())

drupal_mail($mailkey, $b, $subject, $bodyb, $from, $headers=array())

?>

seems like once i sent 2 mails, this error happens. i have tried to find the problem for weeks. still no answer. If anybody knows, please help!

thanks!

TJ