Please read this if you have problems with emails
Moderators: Developer, Contributor
Re: Please read this if you have problems with emails
Hi,
I resolved this issue replacing in defaults configuration this items:
$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
$g_smtp_host = '222.33.444.555:25';
Regards.
I resolved this issue replacing in defaults configuration this items:
$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
$g_smtp_host = '222.33.444.555:25';
Regards.
"La inteligencia consiste no sólo en el conocimiento, sino también en la destreza de aplicar los conocimientos en la práctica."
Aristóteles
Aristóteles
Re: Please read this if you have problems with emails
This was extremely frustrating to make Mantis emails work. But it really wasn't a problem with PHP or Mantis. We have a web server and a mail server sitting behind the firewall with proper ports opened to the internet. When I need for these servers to talk to each other it MUST be through the internal network. In order to address one server from another server using the outside internet URL I have to update the hosts file linking the outside URL with the internal ip address. Once I added the "mail.xxxxxx.com" to the hosts file on the server where I installed Mantis it worked fine. I end up overlooking this every time!!!!
If you are trying to set up Mantis behind a firewall and can't seem to make it work, you might double check this. You WON'T receive any error messages.
If you are trying to set up Mantis behind a firewall and can't seem to make it work, you might double check this. You WON'T receive any error messages.
Re: Please read this if you have problems with emails
dientesverdes wrote:I tried everithing you said in this post, but mantis can't send email notifications.
Mantis, always, show this error
SYSTEM WARNING: stream_socket_enable_crypto() [streams.crypto]: this stream does not support SSL/crypto
I don't know what else i can do. Can you help me?
I apologize for my english, i'm from latinamerica so i do my best.
i am also getting the same problem and i am not able to get any mails .but when i changed
$g_smtp_connection_mode = 'tsl'; to the $g_smtp_connection_mode = 'ssl';
its saying your confirmation is sent to the your mail id but in my inbox no messages from mantis. I am not getting the actual problem
please someone help me out from this problem.
thank you all.
Re: Please read this if you have problems with emails
Did you try all the steps under section
Especially did you check that the ssl extension is enabled?What to do if you still dont receive emails?
Re: Please read this if you have problems with emails
atrol wrote:Did you try all the steps under sectionEspecially did you check that the ssl extension is enabled?What to do if you still dont receive emails?
ssl extension in where i have to enable? means in which file?
thanks...
Re: Please read this if you have problems with emails
That depends on your operationg environment.mantis1 wrote: ssl extension in where i have to enable? means in which file?
For example the author of this topic explained this for XAMPP
and also for WAMP- If you are using XAMPP then make sure you have enabled the openssl service by checking your /xampp/php/php.ini for the following line: extension=php_openssl.dll;
- If you are using WAMP server then make sure you have enabled the Apache >>Apache modules>>ssl_module AND PHP>>Php extensions>>php_openssl
Re: Please read this if you have problems with emails
Thanks for the replyatrol wrote:That depends on your operationg environment.mantis1 wrote: ssl extension in where i have to enable? means in which file?
For example the author of this topic explained this for XAMPPand also for WAMP- If you are using XAMPP then make sure you have enabled the openssl service by checking your /xampp/php/php.ini for the following line: extension=php_openssl.dll;- If you are using WAMP server then make sure you have enabled the Apache >>Apache modules>>ssl_module AND PHP>>Php extensions>>php_openssl
I am using xampp and in /xampp/php/php.ini, extension=php_openssl.dll; line was there already in that line its starting from ';' this symbol i have to remove this symbol for enabling or what please tell me.
Re: Please read this if you have problems with emails
thanks for the replay,atrol wrote:Yesmantis1 wrote:';' this symbol i have to remove this symbol for enabling
But still i am not able to fix mail receiving problem, still i am not getting any mails .
this is my config_inc.php
<?php
$g_hostname = 'localhost';
$g_db_type = 'mysql';
$g_database_name = 'bugtracker';
$g_db_username = 'root';
$g_db_password = 'XXXXX';
$g_allow_signup = ON; //allows the users to sign up for a new account
$g_enable_email_notification = ON; //enables the email messages
$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
$g_smtp_host = 'mail.gmail.com';
$g_smtp_connection_mode = 'ssl';
$g_smtp_port = 25;
$g_smtp_username = 'XXXXX@gmail.com'; //replace it with your gmail address
$g_smtp_password = 'XXXXXXXXXX'; //replace it with your gmail password
$g_administrator_email = 'root@localhost.com'; //this will be your administrator email address
$g_mail_receive_own = ON;
$g_phpMailer_method = 2;
?>
and same settings were there in config_defualts_inc.php
and in php.ini-development i have enable the extension=php_openssl.dll also.
please please help me....
thanks in advance.
Re: Please read this if you have problems with emails
As its indicated in description the smtp port is NOT 25 for gmail. Try it with the one mentioned and check if you receive mails then.
Also delete "$g_phpMailer_method = 2;" since its redundant.
Also delete "$g_phpMailer_method = 2;" since its redundant.
Re: Please read this if you have problems with emails
thanks for the reply.istvanb wrote:As its indicated in description the smtp port is NOT 25 for gmail. Try it with the one mentioned and check if you receive mails then.
Also delete "$g_phpMailer_method = 2;" since its redundant.
i have used 465 for the ssl and 587 for the tsl but still i am not getting any mails.
and when i used 465 with ssl its saying reset password is sent to your mail but in inbox nothing was there and
when i used 587 with tls i am getting this error.
[SYSTEM WARNING: stream_socket_enable_crypto() [streams.crypto]: this stream does not support SSL/crypto]
i am not getting what is this please please help me .
thanks in advanced,,
Re: Please read this if you have problems with emails
Gmail will communicate on port tls 587 (not sure about ssl 465, but tls 587 work just fine for me). So you can try using port25, but it wont work for sure. I recommend to go with 587 because it works for sure, so dont change the lines you can find in the original post.
About the error message: have you performed these steps?
About the error message: have you performed these steps?
- If you are using XAMPP then make sure you have enabled the openssl service by checking your /xampp/php/php.ini for the following line: extension=php_openssl.dll; if it does not exist then shut down the http service, add the line and restart the http service.
- If you are using WAMP server then make sure you have enabled the Apache >>Apache modules>>ssl_module AND PHP>>Php extensions>>php_openssl
Re: Please read this if you have problems with emails
istvanb wrote:Gmail will communicate on port tls 587 (not sure about ssl 465, but tls 587 work just fine for me). So you can try using port25, but it wont work for sure. I recommend to go with 587 because it works for sure, so dont change the lines you can find in the original post.
About the error message: have you performed these steps?
- If you are using XAMPP then make sure you have enabled the openssl service by checking your /xampp/php/php.ini for the following line: extension=php_openssl.dll; if it does not exist then shut down the http service, add the line and restart the http service.
- If you are using WAMP server then make sure you have enabled the Apache >>Apache modules>>ssl_module AND PHP>>Php extensions>>php_openssl
what is http service in this?
Re: Please read this if you have problems with emails
so you didnt...
1, Start menu >>> Run
2, type: services.msc
shut down the Apache service (yeah I ASSUME you use xampp, since you havent mentioned. If you use something else you may shut down something else), make the changes, then restart the service. Probably you can do the same via the xampp control panel as well, but that sometimes has issues, while accessing the services directly always works for me.
1, Start menu >>> Run
2, type: services.msc
shut down the Apache service (yeah I ASSUME you use xampp, since you havent mentioned. If you use something else you may shut down something else), make the changes, then restart the service. Probably you can do the same via the xampp control panel as well, but that sometimes has issues, while accessing the services directly always works for me.
Re: Please read this if you have problems with emails
yes i am using xampp,istvanb wrote:so you didnt...
1, Start menu >>> Run
2, type: services.msc
shut down the Apache service (yeah I ASSUME you use xampp, since you havent mentioned. If you use something else you may shut down something else), make the changes, then restart the service. Probably you can do the same via the xampp control panel as well, but that sometimes has issues, while accessing the services directly always works for me.
the services.msc is opening one window that has many thing in it,i have to start something or what in that,
and i am getting still this error
SYSTEM WARNING: stream_socket_enable_crypto() [streams.crypto]: this stream does not support SSL/crypto
and i have enable (means i have removed ';' this symbol) extension=php_openssl.dll in
/xampp/php/php.in-production and in /xampp/php/php.in-development
please help me,
and thanks for your reply,