phpmail and attachments

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Im trying to send an email + attachment from a linux box on my desk,  
through the exchange server at work  

$mail = new PHPMailer();
$mail->SetLanguage("en", "/usr/lib/php/");
$mail->IsSMTP(); // telling the class to use SMTP
$mail->Host = ""; // Exchange  server
$mail->From = "John.Doe";
$mail->Subject = "CCMDS form";
$mail->Body = "CCMDS form";
$mail->WordWrap = 50;
{  echo "Message was not sent";
   echo "Mailer Error: " . $mail->ErrorInfo;}
{  echo "Message has been sent";}


works as long as the attachment isnt added - as soon as I uncomment the
AddAttachment line I get the 'message' sent but nothing appears at the
other end and I get no bounce/error message

anyone know whats wrong ?

Site Timeline