- Posts: 45
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Cannot send mail with SMTP
- Kevin
- Topic Author
- Offline
- Senior Member
Less
More
4 years 7 months ago #188407
by Kevin
Replied by Kevin on topic Cannot send mail with SMTP
I think this Selinux command fixed it after updating PHPmailer.
Code:
setsebool -P httpd_can_network_connect 1
The topic has been locked.
- DenisChenu
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13647
- Thank you received: 2491
4 years 7 months ago #188410
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Cannot send mail with SMTP
Argl … you can have this message with mail SMTP debug mode …Kevin wrote: I uncommented if(!$sent) var_dump($maildebug); in application/helpers/common_helper.php
I got this message! This will be a huge help!
Great !I think this Selinux command fixed it after updating PHPmailer.
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
The topic has been locked.
- dghrit
- Offline
- New Member
Less
More
- Posts: 1
- Thank you received: 0
3 years 8 months ago #203667
by dghrit
Replied by dghrit on topic Cannot send mail with SMTP
Old thread i knw,
But this may help someone facing similar issue on version 3.0+
Set debug as 1 in config.php
now open limesurvey\applications\helpers\common_helper.php
uncomment the below line to see the error received when sending SMTP email.
if(!$sent) var_dump($maildebug);
In the case where the mail admin provide the relaying service for a particular email ID, which does not require password to be entered in order to send the email.
This is where the problem happens.
As Limesurvey will expect that once a email username is added by the admin a password will be supplied too.
In order to take care of above.
comment the following line in the same file
$mail->SMTPAuth = true;
commenting this line will bypass the password verification.
Hope this helps other facing similar challenges.
But this may help someone facing similar issue on version 3.0+
Set debug as 1 in config.php
now open limesurvey\applications\helpers\common_helper.php
uncomment the below line to see the error received when sending SMTP email.
if(!$sent) var_dump($maildebug);
In the case where the mail admin provide the relaying service for a particular email ID, which does not require password to be entered in order to send the email.
This is where the problem happens.
As Limesurvey will expect that once a email username is added by the admin a password will be supplied too.
In order to take care of above.
comment the following line in the same file
$mail->SMTPAuth = true;
commenting this line will bypass the password verification.
Hope this helps other facing similar challenges.
The topic has been locked.