Welcome to the LimeSurvey Community Forum

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

Email not sent to new user

  • sherry721
  • sherry721's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 1 month ago - 7 years 1 month ago #148510 by sherry721
Email not sent to new user was created by sherry721
I am currently trying to create a new user, but whenever I save the new users it only says that sending the email has failed.

Unfortunately there is no way to test the email settings in Limesurvey (send a test mail).

Is there a way I can find out what went wrong?

I saw other people's question to find out root cause, but it still failed.:(

Limesurvey Using Version 2.62.2+170203 on Ubuntu 16.04 server
Mail server using version Microsoft Exchange 2010

Below is my email settings at Global settings -> Email settings
Default site admin email: sherry.lin@tpv-tech.com
Administrator name: sherry.lin
Email method: SMTP
SMTP host: tpmail.tpvaoc.com
SMTP username: sherry.lin
SMTP encryption: Off
SMTP debug mode: Off
Email batch size: 50


Limesurvey server didn't have below log after I occurred sent email failed.
/var/log/apache2/server-error.log
and
/var/log/apache2/mail.log





Last edit: 7 years 1 month ago by sherry721.
The topic has been locked.
More
7 years 1 month ago #148525 by jelo
Replied by jelo on topic Email not sent to new user
Setting SMTP encryption off means you send your email credentials unencrypted through the internet.
Not the best thing when your company is listed in a stock exchange. A third party could get access to your email box.

First, you might try to use your complete emailadress as SMTP username.
But you should ask the admin of the exchange server if SMTP usage from outside is allowed.
This is not activated by default. So you might won't be able to send from LimeSurvey via Exchange without the help from your admin.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
7 years 1 month ago #148527 by holch
Replied by holch on topic Email not sent to new user
And why not try "SMTP debug mode" ON, this might give you some idea where the problem is.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • sherry721
  • sherry721's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 1 month ago #148676 by sherry721
Replied by sherry721 on topic Email not sent to new user
Hi Jelo,

Thanks for your reply, I will enable SMTP encryption.

The admin of exchange server gave relay permission to my account. (LimeSurvey server had installed Redmine system and Redmine can successfully use same emailaddress to send mail)

So, LimeSurvey should use same emailaddress to send via Exange.
The topic has been locked.
  • sherry721
  • sherry721's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 1 month ago #148677 by sherry721
Replied by sherry721 on topic Email not sent to new user
Hi holch,

It has same error message after I choose "Always" for "SMTP debug mode".
The topic has been locked.
  • sherry721
  • sherry721's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
7 years 1 month ago #148679 by sherry721
Replied by sherry721 on topic Email not sent to new user
I found weird situation.
If I used "Configuration"-->"Create/edit user groups"-->"Email user group", message sent successfully!
If I used "Configuration"-->"Manage survey administrators"-->"Add user", it will show "Email to XXXXX failed. And the top will show below error.

2017-02-15 06:19:14 CLIENT -> SERVER: QUIT 2017-02-15 06:19:14 SERVER -> CLIENT: 221 2.0.0 Service closing transmission channel
The topic has been locked.
More
5 years 3 months ago #178527 by hmd_bakhshi
Replied by hmd_bakhshi on topic Email not sent to new user
I have another odd problem.
I use default php mail in limesurvey. when a new user signup, it says that the password sent to his/her email. but no mail sent.
I try another way at login page by forgot password. after entering username and email, the system says that an email sent to you. but no email sent.
can any body help me in this problem?
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 3 months ago #178530 by holch
Replied by holch on topic Email not sent to new user
This is most probably a problem with php mail in general and your hosting environment. I would always recommend to use SMTP over the other methods. Because PHP mail is often already blocked on server level by your hosting company (to avoid spam or malware sending from this hosting account) or because the receiving email servers consider it as spam. PHP mail is not a good method. Go with SMTP.

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
More
5 years 3 months ago #178533 by hmd_bakhshi
Replied by hmd_bakhshi on topic Email not sent to new user
ok. I try using smtp with gmail account with these configs:\Email method: SMTP
SMTP host: smtp.gmail.com:587
SMTP username: xxxxx@gmail.com
SMTP password: xxxxxxx
SMTP encryption: TLS

but it still doesn't work. when I try to retrieve my password it says sending email failed!
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 3 months ago #178537 by holch
Replied by holch on topic Email not sent to new user
Well, at least you are a step ahead: Before it said it sent the email, but the email never arrived. So you don't know what happened. So it could have been because of spam filters, or a block from your provider, etc.

Now at least you know, that there was a problem sending the emails. Gmail is a little tricky when sending mass emails. You need to have very specific configurations for it to work. Try without encryption for now, just to identify if the problems is there somehow. And make sure that your credentials are correct, of course. ;-)

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 3 months ago #178538 by holch
Replied by holch on topic Email not sent to new user
You might want to check the other threads in the forum about how to get Gmail working for this, for example this one: www.limesurvey.org/forum/can-i-do-this-w...ey/107506-smtp-gmail

I answer at the LimeSurvey forum in my spare time, I'm not a LimeSurvey GmbH employee.
No support via private message.

The topic has been locked.
More
5 years 2 months ago #178549 by hmd_bakhshi
Replied by hmd_bakhshi on topic Email not sent to new user
I check the page but it's not helpful.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose