The really simple example does not produce any white space, and I've tried that on 2 different servers - so the server doesn't seem to be the problem.
So bring on the code :bemused:
if (isset($send) && $send == "send")
{
$bodyedited2 = stripslashes($body);
$bodyedited1 = str_replace("<br>","\n",$bodyedited2);
$bodyedited = str_replace("<p>","\n\n",$bodyedited1);
$emails = array();
$emails = mailinglist();
foreach ($emails as $temp)
{
$to = $temp[email];
$subject = $subject;
$message = "Hi ";
$message .= $temp[firstname];
$message .= "\n\n";
$message .= $bodyedited;
$message .= "\n\n";
$message .= $sender;
$message .= "\n";
$message .= $senderemail;
$message .= "\n\nYou have recieved this email from yorkbiosciences.co.uk as you are registered with the University of York's Biosciences Society.";
$mailheaders = "From: $senderemail <> \n";
$mailheaders .= "Reply-To: $senderemail\n\n";
mail ($to,$subject,$message,$mailheaders)
or print "Could not send mail";
}
}
That's an example of one place where I'm using mail() and it's producing white space. It's looping through a mailing list table.
Does anything obvious pop out at you?
Thanks again.