Please read this if you have problems with emails

Get help from other users here.

Moderators: Contributor, Developer

Re: Please read this if you have problems with emails

Postby bernard_13012 » May 15, 2015 7:20 pm

For several hours, I tried everything to make MantisBT sends a message with gmail SMTP to the new user that I created. The script found at this url helped me to find a solution: https://github.com/PHPMailer/PHPMailer/ ... tions.phps
My solution: I do not use any more SMTP. The only "MantisBT Email Settings" settings on my config_inc.php file are:

Code: Select all
   /***************************
    * MantisBT Email Settings *
    ***************************/
   $g_allow_signup = ON;
   $g_enable_email_notification = ON;
   $g_email_receive_own = ON;
   $g_validate_email = ON;
   $g_use_phpMailer = ON;
   $g_phpMailer_method  = PHPMAILER_METHOD_MAIL;  // not SMTP!!!
   $g_administrator_email = '<my gmail account name>@gmail.com';
   $g_webmaster_email    = '<my gmail account name>@gmail.com';
   $g_from_email = '<my gmail account name>@gmail.com';
   $g_from_name = 'Mantis Bug Tracker';
   $g_return_path_email = '<my gmail account name>@gmail.com';

And it works, now! :D
Thank you to all contributors who allowed me to move forward and to finally find my solution.
bernard_13012
 
Posts: 1
Joined: May 15, 2015 7:08 pm

Re: Please read this if you have problems with emails

Postby rohit.ascent » Aug 31, 2015 8:19 am

Hi ,
I have been implemented all shown method including the testmail.php.
here testmail.php when it running in the brower is loading and showing blank page but not sending any mails.
Even i had made changes in the xampp/php/php.ini and xampp/sendmail/sendmail.ini as shown in the xampp tutorial.
please help me out of this issue
Mantis is a extraordinary tool to report bugs , so i want stay with this and struggle untill it resolves the auto email setup
Please any one suggest some ideas to resolve this,,,,....


Thank you
rohit.ascent
 
Posts: 3
Joined: Aug 31, 2015 7:12 am

Re: Please read this if you have problems with emails

Postby rohit.ascent » Sep 03, 2015 1:53 am

Hi All,
Please follow this steps those who are using mantis with the help of xampp
At C:\xampp\php\php.ini they must edit this fields
SMTP = smtp.gmail.com
smtp_port = 465

; For Win32 only.
; http://php.net/sendmail-from
;sendmail_from = postmaster@localhost

; XAMPP IMPORTANT NOTE (1): If XAMPP is installed in a base directory with spaces (e.g. c:\program filesC:\xampp) fakemail and mailtodisk do not work correctly.
; XAMPP IMPORTANT NOTE (2): In this case please copy the sendmail or mailtodisk folder in your root folder (e.g. C:\sendmail) and use this for sendmail_path.
; XAMPP: Comment out this if you want to work with fakemail for forwarding to your mailbox (sendmail.exe in the sendmail folder) "\ -t"
sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"

; XAMPP: Comment out this if you want to work with mailToDisk, It writes all mails in the C:\xampp\mailoutput folder
;sendmail_path="C:\xampp\mailtodisk\mailtodisk.exe"

; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =
And save it then move to
Send mail xampp\sendmail\sendmail.ini and edit this field


; if your smtp server requires authentication, modify the following two lines

auth_username=xxxxxx@gmail.com
auth_password=xxxxx



; force the sender to always be the following email address
; this will only affect the "MAIL FROM" command, it won't modify
; the "From: " header of the message content

force_sender=xxxxxx@gmail.com


Follow this and above steps for config_inc.php as posted by the atrol(admin) .
This steps resolved auto email notification issue for me, its working for me if any doubts you contact to my mail id : rohit.kunchala@gmail.com
Hope this post helps to all those who are facing issue using xampp in mantis
Thank you
rohit.ascent
 
Posts: 3
Joined: Aug 31, 2015 7:12 am

Re: Please read this if you have problems with emails

Postby massi » Sep 16, 2015 5:58 am

Hi all,

I have some issues with my mantis, the main issue is the sending mail

I tried the the solution listed in the begining of this post and the script testmail.php works.

My version mantis is 1.2.8 and my config_inc.php :
Code: Select all
   $g_hostname = 'xxxx.bdb';
   $g_db_type = 'mysql';
   $g_database_name = 'xxx';
   $g_db_username = 'xxx';
   $g_db_password = 'xxx';
   $g_allow_signup    = ON;  //allows the users to sign up for a new account
   $g_phpMailer_method = PHPMAILER_METHOD_SMTP;
   $g_smtp_host =  'smtp.mydomain.com';
   $g_smtp_connection_mode = 'ssl';
   $g_smtp_port = 465;
    $g_smtp_username = 'xxxx@mydomain.com';
    $g_smtp_password = 'xxxx';
   $g_enable_email_notification = ON;
   $g_send_reset_password = ON;
   $g_administrator_email = 'xxxx@mydomain.com';
   $g_webmaster_email = 'xxxx@mydomain.com';
   $g_from_email = 'xxxx@mydomain.com';
   $g_return_path_email = 'xxxx@mydomain.com';
    $g_email_send_using_cronjob = OFF;   
   $g_from_name = 'Mantis Bug Tracker';
   $g_debug_email = ON;
   $g_log_level = LOG_EMAIL | LOG_EMAIL_RECIPIENT;
    $g_log_destination = 'file: mantisbt.log';
   


Thank you
massi
 
Posts: 1
Joined: Sep 16, 2015 4:31 am

Re: Please read this if you have problems with emails

Postby krishchandru » Sep 24, 2015 3:51 am

Hi

I have been trying with a WAMP server and gmail smtp. Looks like there is something at gmail's end that is preventing the login. I got an email from gmail that "an unsecure application that is not meeting the modern security standards is tying to attempt logging in" - Google has prevented the login.
I got this message when i attempted a test mail from the send mail program under the admin folder.

Request the experts to throw some light.

The setting i have been using is as follows.

# --- Email Configuration ---
$g_phpMailer_method = PHPMAILER_METHOD_SENDMAIL; # or PHPMAILER_METHOD_SMTP, PHPMAILER_METHOD_SENDMAIL
$g_smtp_host = 'smtp.gmail.com'; # used with PHPMAILER_METHOD_SMTP
$g_smtp_username = 'i******s@gmail.com'; # used with PHPMAILER_METHOD_SMTP
$g_smtp_password = '*******'; # used with PHPMAILER_METHOD_SMTP
$g_administrator_email = 'i******s@gmail.com';
$g_webmaster_email = 'i******s@gmail.com';
$g_from_email = 'i******s@gmail.com'; # the "From: " field in emails
$g_return_path_email = 'i******s@gmail.com'; # the return address for bounced mail
$g_from_name = 'Mantis Bug Tracker';
$g_smtp_connection_mode = 'ssl';
$g_smtp_port = 465;
# $g_email_receive_own = OFF;
# $g_email_send_using_cronjob = OFF;
krishchandru
 
Posts: 2
Joined: Sep 16, 2015 1:38 pm

Re: Please read this if you have problems with emails

Postby dharding » Nov 05, 2015 10:47 am

krishchandru wrote:Hi

I have been trying with a WAMP server and gmail smtp. Looks like there is something at gmail's end that is preventing the login. I got an email from gmail that "an unsecure application that is not meeting the modern security standards is tying to attempt logging in" - Google has prevented the login.
I got this message when i attempted a test mail from the send mail program under the admin folder.


I get the same result. The method in this thread now appears to be defunct.

Text of email:


Hi XXX,
Someone just tried to sign in to your Google Account YYYY@gmail.com from an app that doesn't meet modern security standards.

Details:

Thursday, November 5, 2015 9:55 AM (Eastern Standard Time)
United States*

We strongly recommend that you use a secure app, like Gmail, to access your account. All apps made by Google meet these security standards. Using a less secure app, on the other hand, could leave your account vulnerable. Learn more.

Google stopped this sign-in attempt, but you should review your recently used devices:

REVIEW YOUR DEVICES NOW
Best,
The Google Accounts team
dharding
 
Posts: 1
Joined: Nov 05, 2015 10:44 am

Re: Please read this if you have problems with emails

Postby rasim » Nov 06, 2015 2:55 am

Hai,

I am trying to use mantis, Email is not working if use smtp port? I am trying from the past 4 days, but still now i couldn't able to figure it out, please let me know the solution for this. Thanks in Advance.
rasim
 
Posts: 2
Joined: Nov 06, 2015 2:52 am

Re: Please read this if you have problems with emails

Postby vdweller » Feb 04, 2016 6:15 pm

Hello,

I have a free hosting from awardspace. It says in the hosting options that SMTP is disabled. Does this mean I won't be able to make the email work properly, or is it irrelevant?
vdweller
 
Posts: 1
Joined: Feb 04, 2016 5:45 pm

Re: Please read this if you have problems with emails

Postby pwason » Sep 21, 2016 4:35 pm

CentOS 6.8 w/ SELinux, Webmin, PostFix, Mantis-BT
Webmin can send a test email via PostFix with no issue.
Mantis-BT sends nothing.
Added SMTP stuff to config_inc.php. (Webmin/PostFix also using SMTP)
Set SELinux flag to allow httpd to send emails (it was off; don't know how Webmin was doing it)
Restarted everything.
Still no emails from Mantis-BT.
Boss getting cranky.
pwason
 
Posts: 4
Joined: Sep 21, 2016 3:15 pm

Re: Please read this if you have problems with emails

Postby atrol » Sep 22, 2016 4:09 am

pwason wrote:Webmin can send a test email via PostFix

Did you try using mail or sendmail instead of SMTP?
Code: Select all
$g_phpMailer_method = PHPMAILER_METHOD_MAIL;
or
Code: Select all
$g_phpMailer_method = PHPMAILER_METHOD_SENDMAIL;
Please use Search before posting and read the Manual
Use Mantis2Go to try MantisBT on Windows or to reproduce issues
atrol
Site Admin
 
Posts: 6714
Joined: Mar 26, 2008 4:37 pm
Location: Germany

Re: Please read this if you have problems with emails

Postby zebios » Oct 17, 2016 6:00 pm

I don't have much experience using debian and I realized after that 'sendmail' was not installed.

If anyone else is having similar issues using Debian, ensure that sendmail is running

Cigarette electronique Grossiste - E liquide Grossiste - Cigarette Electronic Wholesale - E liquid Wholesale - E cigarette Wholesale

Cigarette electronique prix - E liquide - E cigarette - Joyetech - Kangertech

islamic books - livre islamique - buy quran in arabic - acheter coran - Hadith Books
Last edited by zebios on Aug 02, 2017 6:44 pm, edited 4 times in total.
zebios
 
Posts: 3
Joined: Oct 17, 2016 5:58 pm

Re: Please read this if you have problems with emails

Postby newbe » Dec 09, 2016 10:39 am

Hello,
although this topic seems to be an all time "favourite" I have a question to which I need some help for interpretation:
I'm using MantisBT 1.2.19 now for quite a long time (>2 years) in an Win7 environment ("xampp based") and everything worked as expected. In the field of email one and always the same problem arose till now in case a wrong email address was entered. After this the complete email communication stopped. However, this could be identified easily by checking the email queue, deleting the email with the faulty address and everything is fine again.
But 3 days ago the email system stopped again. In this case, the email queue showed no faulty address. In steps I deleted the oldest email and after that all mails in the queue - no change.
Then, I checked ../admin/test_email.php which showed there is a problem with email settings. Because I'm not aware of any changes, I enables logging of LOG_EMAIL and LOG_EMAIL_RECIPIENT, but nothing is recorded, when performing the test_email.php, so I have no hint where to deep dive.
Just for completeness: PHPMAILER_METHOD_SMTP, $g_smtp_connection_mode as defaulted.
Is there any way to track email problems (wrong port, wrong encryption mode or whatever else ?

Cheers and a nice weekend!
Uli
newbe
 
Posts: 12
Joined: Mar 14, 2014 11:06 am

Re: Please read this if you have problems with emails

Postby ryanperlman » Dec 13, 2016 5:05 am

still have some issues so where can i ask?
ryanperlman
 
Posts: 1
Joined: Dec 13, 2016 3:31 am
Location: USA

Re: Please read this if you have problems with emails

Postby Yury Vinogradov » Jan 08, 2017 3:08 am

For MantisBT 2 follow the instructions in first post of this thread.
I had to add two parameters to config_inc.php (located in: <XAMPP>\htdocs\mantis\ or <WAMP>\www\mantis\ ) to use gmail smtp:
Code: Select all
$g_smtp_connection_mode = 'tls';
$g_smtp_port = 587;


so, the full email settings section is:
Code: Select all
# --- Email Configuration ---
$g_phpMailer_method      = PHPMAILER_METHOD_SMTP; # PHPMAILER_METHOD_MAIL; # or PHPMAILER_METHOD_SMTP, PHPMAILER_METHOD_SENDMAIL
$g_smtp_host         = 'smtp.gmail.com';         # used with PHPMAILER_METHOD_SMTP
$g_smtp_username      = '<mymail>@gmail.com';               # used with PHPMAILER_METHOD_SMTP
$g_smtp_connection_mode = 'tls';
$g_smtp_port = 587;
$g_smtp_password      = '<my Gmail password>';               # used with PHPMAILER_METHOD_SMTP
$g_webmaster_email      = ''<mymail>@gmail.com';
$g_from_email           = ''<mymail>@gmail.com';   # the "From: " field in emails
$g_return_path_email    = ''<mymail>@gmail.com';   # the return address for bounced mail
$g_from_name         = 'MantisBT';
# $g_email_receive_own   = OFF;
# $g_email_send_using_cronjob = OFF;
Yury Vinogradov
 
Posts: 1
Joined: Jan 08, 2017 2:58 am

Re: Please read this if you have problems with emails

Postby rome1011 » Jul 20, 2017 8:01 am

I Ues MAntsiBT 2.5.1
Though setting up
It does not send mail.


testmail.php


Warning: require_once(Mail.php): failed to open stream: No such file or directory in C:\Apache24\htdocs\mantis\testmail.php on line 2

Fatal error: require_once(): Failed opening required 'Mail.php' (include_path='.;C:\php\pear') in C:\Apache24\htdocs\mantis\testmail.php on line 2


I checked testmail.Php, and the error was found.
Please let me know how to handle it.
rome1011
 
Posts: 2
Joined: Jul 09, 2017 9:03 pm

PreviousNext

Return to Help

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 13 guests