Check out the LimeSurvey source code on GitHub!

Can't get global email settings to work

More
5 years 11 months ago #56047 by ezemenari
I can't send any emails via SMTP. All the correct values were entered into the Global email settings.

Here is the error that I get:

Email to , username. Error Message: Language string failed to load: tls

SMTP server error:
# SMTP debug output:

SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "220 pod#####.outlook.com Microsoft ESMTP MAIL Service ready at Mon, 31 Jan 2011 19:01:22 +0000
"
SMTP -> get_lines(): $data is "220 pod#####.outlook.com Microsoft ESMTP MAIL Service ready at Mon, 31 Jan 2011 19:01:22 +0000
"
SMTP -> FROM SERVER:220 pod#####.outlook.com Microsoft ESMTP MAIL Service ready at Mon, 31 Jan 2011 19:01:22 +0000

SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "250-pod#####.outlook.com Hello [###.###.##.##]
"
SMTP -> get_lines(): $data is "250-pod#####.outlook.com Hello [###.###.##.##]
"
SMTP -> get_lines(): $data was "250-pod#####.outlook.com Hello [###.###.##.##]
"
SMTP -> get_lines(): $str is "250-SIZE 29696000
"
SMTP -> get_lines(): $data is "250-pod#####.outlook.com Hello [###.###.##.##]
250-SIZE 29696000
"
SMTP -> get_lines(): $data was "250-pod#####.outlook.com Hello [###.###.##.##]
250-SIZE 29696000
"
SMTP -> get_lines(): $str is "250-PIPELINING
"
SMTP -> get_lines(): $data is "250-pod#####.outlook.com Hello [###.###.##.##]
250-SIZE 29696000
250-PIPELINING
"
SMTP -> get_lines(): $data was "250-pod#####.outlook.com Hello [###.###.##.##]
250-SIZE 29696000
250-PIPELINING
"
SMTP -> get_lines(): $str is "250-DSN
"
SMTP -> get_lines(): $data is "250-pod#####.outlook.com Hello [###.###.##.##]
250-SIZE 29696000
250-PIPELINING
250-DSN
"
SMTP -> get_lines(): $data was "250-pod#####.outlook.com Hello [###.###.##.##]
250-SIZE 29696000
250-PIPELINING
250-DSN
"
SMTP -> get_lines(): $str is "250-ENHANCEDSTATUSCODES
"
SMTP -> get_lines(): $data is "250-pod#####.outlook.com Hello [###.###.##.##]
250-SIZE 29696000
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
"
SMTP -> get_lines(): $data was "250-pod#####.outlook.com Hello [###.###.##.##]
250-SIZE 29696000
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
"
SMTP -> get_lines(): $str is "250-STARTTLS
"
SMTP -> get_lines(): $data is "250-pod#####.outlook.com Hello [###.###.##.##]
250-SIZE 29696000
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-STARTTLS
"
SMTP -> get_lines(): $data was "250-pod#####.outlook.com Hello [###.###.##.##]
250-SIZE 29696000
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-STARTTLS
"
SMTP -> get_lines(): $str is "250-AUTH
"
SMTP -> get_lines(): $data is "250-pod#####.outlook.com Hello [###.###.##.##]
250-SIZE 29696000
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-STARTTLS
250-AUTH
"
SMTP -> get_lines(): $data was "250-pod#####.outlook.com Hello [###.###.##.##]
250-SIZE 29696000
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-STARTTLS
250-AUTH
"
SMTP -> get_lines(): $str is "250-8BITMIME
"
SMTP -> get_lines(): $data is "250-pod#####.outlook.com Hello [###.###.##.##]
250-SIZE 29696000
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-STARTTLS
250-AUTH
250-8BITMIME
"
SMTP -> get_lines(): $data was "250-pod#####.outlook.com Hello [###.###.##.##]
250-SIZE 29696000
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-STARTTLS
250-AUTH
250-8BITMIME
"
SMTP -> get_lines(): $str is "250-BINARYMIME
"
SMTP -> get_lines(): $data is "250-pod#####.outlook.com Hello [###.###.##.##]
250-SIZE 29696000
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-STARTTLS
250-AUTH
250-8BITMIME
250-BINARYMIME
"
SMTP -> get_lines(): $data was "250-pod#####.outlook.com Hello [###.###.##.##]
250-SIZE 29696000
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-STARTTLS
250-AUTH
250-8BITMIME
250-BINARYMIME
"
SMTP -> get_lines(): $str is "250 CHUNKING
"
SMTP -> get_lines(): $data is "250-pod#####.outlook.com Hello [###.###.##.##]
250-SIZE 29696000
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-STARTTLS
250-AUTH
250-8BITMIME
250-BINARYMIME
250 CHUNKING
"
SMTP -> FROM SERVER: 250-pod#####.outlook.com Hello [###.###.##.##]
250-SIZE 29696000
250-PIPELINING
250-DSN
250-ENHANCEDSTATUSCODES
250-STARTTLS
250-AUTH
250-8BITMIME
250-BINARYMIME
250 CHUNKING

SMTP -> get_lines(): $data was ""
SMTP -> get_lines(): $str is "220 2.0.0 SMTP server ready
"
SMTP -> get_lines(): $data is "220 2.0.0 SMTP server ready
"
SMTP -> FROM SERVER:220 2.0.0 SMTP server ready

SMTP -> FROM SERVER:
SMTP -> ERROR: RSET failed:

Please Log in to join the conversation.

More
5 years 11 months ago #56068 by Mazi
"Email to , username. Error Message: Language string failed to load: tls"
Did you enable SSL/TLS for SMTP?

If so, try SMTP without SSL/TLS.


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

More
5 years 11 months ago #56130 by ezemenari
Hi Mazi,

I tried it with SSL and off. Neither seems to work. Is there another setting I need to check outside of the global settings? It's my understanding that this would override anything in the config folder, right?

Please Log in to join the conversation.

More
5 years 11 months ago #56153 by Mazi

ezemenari wrote: Hi Mazi,

I tried it with SSL and off. Neither seems to work. Is there another setting I need to check outside of the global settings? It's my understanding that this would override anything in the config folder, right?

That is correct.

Do you use the same SMTP email settings for other tools?

What about switching to a different email method?


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

More
5 years 11 months ago #56220 by ezemenari
Hi Mazi,

It looks like I can get it to work with a yahoo email account using SMTP. However, I can't get it to work on a more preferred email account like gmail or a microsoft exchange account...both which use IMAP. Is there a known solution for getting these two types of accounts to work with the SMTP settings? I'm sure I'm using the right settings since they work in Outlook. Would PHP or Sendmail be a better option or would they likely provide the same results as SMTP? IF so, is there documentation for how to setup PHP or sendmail to send emails? Never done that before, but I see it is an email option in Linmesurvey.

I appreciate your assistance.

Please Log in to join the conversation.

More
5 years 11 months ago #56226 by Mazi
You don't need to set up sentmail or PHP emailing, it's all included in Limesurvey.
Using SMTP has the advantage that you can sent nearly unlimited emails (when using your own SMTP server) while when lettings the script (other email methods) do the work, some providers allow only X emails/hour to prevent spam.

Did you try adding a certain port at the SMTP email configuration? For gmail I think that is "smtp.gmail.com:465" (or "smtp.gmail.com:587").


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"
The following user(s) said Thank You: ezemenari

Please Log in to join the conversation.

More
5 years 11 months ago #56374 by ezemenari
Yes. I've tried those gmail settings and can't seem to get gmail to work. I tried using my user name with and without @gmail.com. I also tried using TLS, SSL, and none. None of these permutations seem to work for me. For some reason my basic yahoo account (e.g., This email address is being protected from spambots. You need JavaScript enabled to view it.) works fine, but not my yahoo business mail account (e.g., This email address is being protected from spambots. You need JavaScript enabled to view it.) that is linked to the same basic yahoo account. I really would prefer to use the gmail account, but I can't seem to get it to work. Are there certain types of email accounts that aren't compatible with limesurvey? Thanks for your assistance!!!

Please Log in to join the conversation.

More
5 years 11 months ago #56376 by ezemenari
Does Limesurvey support SMTP authentication?

Please Log in to join the conversation.

More
5 years 11 months ago #56395 by DenisChenu

ezemenari wrote: Does Limesurvey support SMTP authentication?

I have already trye with gmail , and it's work fine.

Have you put the port ?

smtp.gmail.com:465

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand (or search sondages pro).

Please Log in to join the conversation.

More
5 years 11 months ago #56408 by ezemenari
It looks like it was a PHP issue. I upgraded to the latest version of PHP and made sure it could handle imap, tls, ssl, etc. That seemed to do the trick. Thanks everyone for your assistance.

Please Log in to join the conversation.

More
5 years 11 months ago #56417 by holch
Cool that it works now. Could you maybe also post which PHP version you had before? Maybe this helps others as well.

I'm not a LimeSurvey GmbH member. I answer at the LimeSurvey forum in my spare time. No support via private message.
Some helpful links: Manual (EN) | Question Types | Workarounds

Please Log in to join the conversation.

More
5 years 11 months ago #56604 by Mazi

ezemenari wrote: It looks like it was a PHP issue. I upgraded to the latest version of PHP and made sure it could handle imap, tls, ssl, etc. That seemed to do the trick. Thanks everyone for your assistance.

Please update the manual and share your solution, this will help other users a lot.


Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)survey-consulting.com'"

Please Log in to join the conversation.

Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form