Welcome to the LimeSurvey Community Forum

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

error phpmail

  • djarnold01
  • djarnold01's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 9 months ago - 8 years 9 months ago #121172 by djarnold01
error phpmail was created by djarnold01
My survey has an error when trying to send email
Error: Email failed, this may indicate a PHP Mail Setup problem on the server.
Which could be the problem if the first time I set it up, it worked well

The first time I set it up, I used an Office365 mail account and works well
Now is not working anymore.
I changed the configuration to gmail and is not working.

error
2015-06-01 18:11:01 CLIENT -> SERVER: QUIT 2015-06-01 18:11:01 SERVER -> CLIENT: 221 2.0.0 Service closing transmission channel


My server is RHEL 6.5 and xampp for apache,php and mysql
Last edit: 8 years 9 months ago by djarnold01.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 9 months ago #121174 by holch
Replied by holch on topic error phpmail
If you used an Office365 mail account, that I am quite sure it was not with PHP Mail, but with SMTP.

To me it sounds like your server can send mails via php mail.

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.
  • djarnold01
  • djarnold01's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 9 months ago - 8 years 9 months ago #121175 by djarnold01
Replied by djarnold01 on topic error phpmail
All the time I've been using the SMTP option

Is weird because if it worked well and suddenly stopped working
I never moved anything in the server configuration

If I put the gmail SMTP settings, send mail does not work
Last edit: 8 years 9 months ago by djarnold01.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 9 months ago #121177 by holch
Replied by holch on topic error phpmail
OK, wait a second. We need to make clear what you are talking about.

Let's see if I get it right:
- You have used SMTP with a Office 365 account sucessfully.
- You switched to gmail with no sucess

My question is: Where comes the php mail error into the game??

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.
  • djarnold01
  • djarnold01's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 9 months ago - 8 years 9 months ago #121178 by djarnold01
Replied by djarnold01 on topic error phpmail
Yes, I have used SMTP with an Office 365 account sucessfully but yesterday it stopped working so I switched to gmail to rule out problems with office365 but I had no success.

The php mail error comes when you want to continue the survey another day

"Error: Email failed, this may indicate a PHP Mail Setup problem on the server. Your survey details have still been saved, however you will not get an email with the details. !
Last edit: 8 years 9 months ago by djarnold01.
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 9 months ago #121179 by holch
Replied by holch on topic error phpmail
Can you show a screenshot of your email configuration page? (of course with personal data blacked out.

Because the PHP mail error shouldn't come at all, if you use SMTP as your email configuration, I would say.

So Office365 worked before, doesn't work anymore. That is already a good additional information, because I understood your first post in the way that the problem was only with 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.
  • djarnold01
  • djarnold01's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 9 months ago #121180 by djarnold01
Replied by djarnold01 on topic error phpmail
Ok I attached the screenshot

The config is in spanish
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 9 months ago #121181 by holch
Replied by holch on topic error phpmail
Try using the hole email address for login, not just the part before "@", as far as I know, this is necessary with Gmail.




See also here:
www.digitalocean.com/community/tutorials...google-s-smtp-server
support.google.com/mail/troubleshooter/1...1#ts=1665119,1665162

However, I am not sure if this helps, because you get this PHP mail error, so there might be something else going on on your server. Did you update LS recently?
You already said that you did not make any chances to the server. How about your hosting company?

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.
  • djarnold01
  • djarnold01's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 9 months ago #121183 by djarnold01
Replied by djarnold01 on topic error phpmail
Thaks!
I tried these settings without success.
My server is local with a public IP and my own domain
The version I am using right now is
2.05+ Build 150413
when the email worked, I used the same version.
Do you think it could be some network configuration issue?
The topic has been locked.
  • holch
  • holch's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
8 years 9 months ago #121185 by holch
Replied by holch on topic error phpmail
I am not an expert on network configurations, but a local server with public IP (fixed or dynamic DNS) surely gives some space for errors. But if it worked before and it doesn't, there mus have changed something, somewhere, somehow.

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.
  • djarnold01
  • djarnold01's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 9 months ago #121207 by djarnold01
Replied by djarnold01 on topic error phpmail
Thanks for the help!!!
problem solved, I do not know why, but suddenly started working again.
Maybe the isp was the problem.
The topic has been locked.
More
8 years 9 months ago #121217 by jelo
Replied by jelo on topic error phpmail

djarnold wrote: Thanks for the help!!!
problem solved, I do not know why, but suddenly started working again.
Maybe the isp was the problem.

Is the IP of your ISP connection static or changing every 24h or after reconnection.

The error messages and SMTP error codes of the big email companies are often a bit misleading and there blacklist / antispam routines are blocking IP-Ranges for days without a clear notice why they do this.

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose