Hello:
I've researched all the articles I could find and attempted every solution suggested, but am still not able to get MantisBT to send email using the configuration below, set in config_inc.php. The wierd thing is that using the testmail app recommended in the article http://www.mantisbt.org/forums/viewtopi ... =3&t=15398, I am able to send email. Additionally, using the config below, but using my personal gmail account, the email function under http://localhost/mantis/admin/test_email.php works as well. This leads me to conclude that I'm missing something in my MantisBT configuration.
$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
$g_smtp_port = 587;
// $g_smtp_port = 465;
// $g_smtp_port = 25;
$g_smtp_connection_mode = 'tls';
// $g_smtp_connection_mode = 'ssl';
$g_from_email = 'support@cavegroup.com';
$g_smtp_host = 'smtp.bizmail.yahoo.com';
$g_smtp_username = 'support@cavegroup.com';
$g_smtp_password = 'MyPassword';
I have a LAMP implementation running CentOS 6.3, PHP 5.4.8, Apache 2.2.15, and MantisBT 1.2.12.
My php.ini contains:
sendmail_path = /usr/sbin/sendmail -t -i
Using the testemail.php with debugging turned on, the is the output I get
DEBUG: Recv: 220 smtp110.biz.mail.gq1.yahoo.com ESMTP DEBUG: Send: EHLO localhost DEBUG: Recv: 250-smtp110.biz.mail.gq1.yahoo.com DEBUG: Recv: 250-AUTH LOGIN PLAIN XYMCOOKIE DEBUG: Recv: 250-PIPELINING DEBUG: Recv: 250-SIZE 41697280 DEBUG: Recv: 250 8BITMIME DEBUG: Send: AUTH LOGIN DEBUG: Recv: 334 VXNlcm5hbWU6 DEBUG: Send: c3VwcG9ydEBjYXZlZ3JvdXAuY29t DEBUG: Recv: 334 UGFzc3dvcmQ6 DEBUG: Send: Y2F2ZWdyb3Vw DEBUG: Recv: 235 OK, go ahead DEBUG: Send: MAIL FROM: DEBUG: Recv: 250 OK , completed DEBUG: Send: RCPT TO: DEBUG: Recv: 250 OK , completed DEBUG: Send: DATA DEBUG: Recv: 354 Start Mail. End with CRLF.CRLF DEBUG: Send: From: support@cavegroup.com To: mkhan@cavegroup.com Subject: Hi! Hi, How are you? DEBUG: Send: . DEBUG: Recv: 250 OK , completed DEBUG: Send: QUIT DEBUG: Recv: 221 Service Closing transmission
Message successfully sent!
If I use admin/email_queue.php, I see messages sitting in the queue. If I press the 'Send all' button, I am told that sending email is done. There are errors logged anywhere that I can see. My MantisError.log (specified in config_inc.php) shows:
2012-11-26 20:26 UTC mail Processing 3 queued messages
2012-11-26 20:26 UTC mail Sending message #15 queued on 2012-11-26 16:28 UTC
2012-11-26 20:26 UTC mail Sending message #14 queued on 2012-11-26 16:28 UTC
2012-11-26 20:26 UTC mail Sending message #13 queued on 2012-11-26 16:28 UTC
In php.ini, I've set error_reporting = E_ALL
I ran into SELinux restrictions against Apache sending emails which I fixed, and since I am able to send using my gmail account and also with the yahoo account provided I use the testemail.php app, I have to believe that MantisBT is where the problem lies.
Unable to send email using Bizmail Yahoo SMTP server
Moderators: Developer, Contributor