Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Cannot send mail with SMTP

  • Kevin
  • Kevin's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
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
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 7 months ago #188410 by DenisChenu
Replied by DenisChenu on topic Cannot send mail with SMTP

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!

Argl … you can have this message with mail SMTP debug mode

I think this Selinux command fixed it after updating PHPmailer.

Great ! :)

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.
More
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.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose