Gerardo Diaz wrote: Hi Gerardo!
Just today I have returned to my e-mail problem, so sorry for the delay in respond to your message. > looking at the packets you'll have complete access to the whole > tcp sockets traffic, ie "the conversation" so it will help your > debugging You are completely sure! I did use a sniffer (Ethereal) and after some minutes analyzing the SMTP traffic the I could see the error message: "554 5.7.1 Sender address rejected: Sender domain does not belong to this server e-mail structure" (free translation from portuguese). The problem occurs because the sender address send by Mantis to phpMailer is the return_path_mail, and I was using a returning address from another e-mail domain what was allowed by the SMTP host service till some months ago, but it is not allowed anymore. To avoid that in the future others mantis or phpmailer users have to pass for all this hard work again, I have two suggestions: For phpMailer (I will post this suggestion in the phpMailer bugtracker): In class.phpmailer.php line 1395, change the SetError function from: function SetError($msg) { $this->error_count++; $this->ErrorInfo = $msg; } to something like: function SetError($msg) { $this->error_count++; if ($this->Mailer == "smtp") { $msg .= "<p>" . "Server error: " . $this->smtp->error["smtp_msg"]; } $this->ErrorInfo = $msg; } For Mantis, in email_queue_api.php, add a property error_msg to the class EmailData (consequently create a field in the mantis_bug_file_table) to store the returned error msg, and maybe create a method email_queue_edit that would update the current record in the mantis_bug_file_table setting the value of the error_msg field in case of error. And finally in email-api.php line 771 change the email_send function from: if ( !$mail->Send() ) { $t_success = false; } else To something like: if ( !$mail->Send() ) { $t_success = false; $t_email_data->error_msg = $mail->ErrorInfo;; email_queue_edit( $t_email_data); } else I would like to hear comments about this suggestions, and after discuss it I can report an issue in the Mantis bugtracker. Thank you so much Gerardo, Glenn, John and Victor for the help. Regards, Jeferson Oliveira Brazil Sent by Mozilla Thunderbird http://br.mozdev.org/thunderbird ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ mantisbt-help mailing list mantisbt-help@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mantisbt-help