Thanks Richard but now..... This script send out a few hundred email addresses but I do not seem to be getting any returned to from failed email addresses eg. myaddress@xxxxxxxxxxxxxxxxxxxxxxxx include("mailer/class.phpmailer.php"); $mail = new PHPMailer(); $mail->Mailer = "mail"; // telling the class to use SMTP $mail->IsHTML(true); $mail->Host = "mail.scottishsocialnetworks.org"; // SMTP server $mail->FromName = "Scottish Social Networks"; $mail->From = "ross@xxxxxxxxxxxxx"; $Sender = "ross@xxxxxxxxxxxxx"; //set up the mail loop $addresses = array(); $addresses = explode(",", $mail_to); $mail->AddAttachment($userfile, $_FILES['userfile']['name']); $mail->Subject = $mail_subject; $mail->Body = nl2br($mail_body); $mail->WordWrap = 50; for($i = 0; $i < count($addresses); $i++) { $mail->AddAddress($addresses[$i]); if(!$mail->Send()) { echo "Message was not sent"; echo "Mailer Error: " . $mail->ErrorInfo; } $mail->ClearAddresses(); } } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php