ID: 46314 Updated by: [EMAIL PROTECTED] Reported By: s_khreiss at hotmail dot com -Status: Open +Status: Bogus Bug Type: Mail related Operating System: Windows XP PHP Version: 5.2.6 New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. Previous Comments: ------------------------------------------------------------------------ [2008-10-16 12:51:37] s_khreiss at hotmail dot com Description: ------------ Dear, In our Website we have an option to send an e-mail..where I'am using the send_email function to send via SMTP. the function was working correctly and e-mails were sent, but today when trying to send an e-mail, it gives me: 'error: send e-mail failed. SMTP is up and running. (we re-start it and we re-start the IIS server but nothing change) please I need help to know why mail are not sent. (here is the function) thank you, Sincerely, Reproduce code: --------------- function send_email($to, $subject, $message, $from, $name) { require("includes/class.phpmailer.php"); $mail = new PHPMailer(); $mail->IsSMTP(); // send via SMTP $mail->Host = "localhost"; // SMTP servers $mail->SMTPAuth = false; // turn on SMTP authentication $mail->From = $from; $mail->FromName = $name; $mail->AddAddress($to);// optional name $mail->AddReplyTo($to,""); $mail->WordWrap = 50; // set word wrap $mail->IsHTML(true); // send as HTML $mail->Subject = $subject; $mail->Body = $message; $mail->AltBody = $message; if(!$mail->Send()) { print"<script> alert('error: send e-mail failed'); window.close() </script>"; echo "Mailer Error: " . $mail->ErrorInfo; } else { print"<script> alert('e-mail sent successfully'); window.close() </script>"; } } ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=46314&edit=1