Accueil arrow Support arrow Forums
LimeSurvey Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Confusing email problem upgrading 1.70+ to 1.71 (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: Re:Confusing email problem upgrading 1.70+ to 1.71
#16579
DaMoisture (User)
Fresh Lemon
Posts: 12
graphgraph
User Offline Click here to see the profile of this user
Confusing email problem upgrading 1.70+ to 1.71+ 4 Months, 2 Weeks ago Karma: 0  
I was able to use the public registration function of LS when I was using 1.70+, but now that I recently upgraded to 1.71+ after some server problems. Each time I attempt to register, I fill in all the information and click submit, I get an "email error" message.



Original email settings from 1.70+ install:
// Email Settings
// These settings determine how LimeSurvey will send emails

$siteadminemail = "stephen.moist_at_c4pd.com";
$siteadminbounce = "stephen.moist_at_c4pd.com";
$siteadminname = "Stephen Moist";
$emailmethod = "smtp";
$emailsmtphost = "mail.c4pd.com";
$emailsmtpuser = "stephen.moist_at_c4pd.com";
$emailsmtppassword = "***********";
$emailsmtpssl = 0;
$maxemails = 50;


Current email settings from 1.71+ install:
// Email Settings
// These settings determine how LimeSurvey will send emails

$siteadminemail = 'stephen.moist_at_c4pd.com';
$siteadminbounce = 'stephen.moist_at_c4pd.com';
$siteadminname = 'Stephen Moist';
$emailmethod = 'smtp';
$emailsmtphost = 'mail.c4pd.com';
$emailsmtpuser = 'stephen.moist_at_c4pd.com';
$emailsmtppassword = '**********';
$emailsmtpssl = '';
$maxemails = 50;


I am using all the defaults for the email itself. Also, I have all the comments still in the config.php file. Any thoughts?

EDIT: I get a slightly more descriptive message when the error occurs during a save:
Error: Email failed, this may indicate a PHP Mail Setup problem on your server. Your survey details have still been saved, however you will not get an email with the details. You should note the "name" and "password" you just used for future reference.
 
Logged Logged  
 
Last Edit: 2008/08/11 17:33 By Mazi.
  The administrator has disabled public write access.
#16630
DaMoisture (User)
Fresh Lemon
Posts: 12
graphgraph
User Offline Click here to see the profile of this user
Re:Confusing email problem upgrading 1.70+ to 1.71+ 4 Months, 1 Week ago Karma: 0  
Just an update, I have tried using the "mail" setting as well, to no avail.
 
Logged Logged  
  The administrator has disabled public write access.
#16643
Joe (User)
Platinum Lime
Posts: 362
graphgraph
User Offline Click here to see the profile of this user
Re:Confusing email problem upgrading 1.70+ to 1.71 4 Months, 1 Week ago Karma: 19  
Hi,

Maybe your problem is connected to the following bugtracker issue.
http://bugs.limesurvey.org/view.php?id=2247

Ciao
Joe

BTW: It is always helpful if you post your revision number (eg. the newest available rev. of LS is 5326).
 
Logged Logged  
 
Last Edit: 2008/07/25 14:07 By ElMatador69. Reason: corrected link
  The administrator has disabled public write access.
#16644
DaMoisture (User)
Fresh Lemon
Posts: 12
graphgraph
User Offline Click here to see the profile of this user
Re:Confusing email problem upgrading 1.70+ to 1.71+ 4 Months, 1 Week ago Karma: 0  
Thank you Joe, I looked over that bug report and it could be related. I am using build 5326, just upgraded a few days ago.
 
Logged Logged  
  The administrator has disabled public write access.
#16646
Joe (User)
Platinum Lime
Posts: 362
graphgraph
User Offline Click here to see the profile of this user
Re:Confusing email problem upgrading 1.70+ to 1.71 4 Months, 1 Week ago Karma: 19  
Hi,

if you really need a working LS with SMTP AUTH you can use 5147 as this one works for me. The problem seems to be introduced in the later versions.

Ciao
Joe
 
Logged Logged  
  The administrator has disabled public write access.
#16648
DaMoisture (User)
Fresh Lemon
Posts: 12
graphgraph
User Offline Click here to see the profile of this user
Re:Confusing email problem upgrading 1.70+ to 1.71+ 4 Months, 1 Week ago Karma: 0  
Thank you very much. I am good for now, as I do not need the email functionality right now as we are still in the testing/development phase. I don't want to downgrade, then have to upgrade at some point when the bug is fixed. I guess I'll just wait and see!

Just for clarification, the bug is in the SMTP AUTH bit?

Are there any logs I can be looking at that might help the devs solve this one?
 
Logged Logged  
 
Last Edit: 2008/07/25 18:10 By DaMoisture.
  The administrator has disabled public write access.
#17470
mdekker (User)
Senior Lime
Posts: 40
graphgraph
User Offline Click here to see the profile of this user
Re:Confusing email problem upgrading 1.70+ to 1.71+ 3 Months, 3 Weeks ago Karma: 0  
I tried using the smtp function with the latest svn (5406) and I need to use ssl/tls. I get a connection timeout error as described in the bugtracker... but when I keep trying eventually my email gets sent.

So I suppose somewhere the server is a bit slow in responding, maybe someone could try to give the server a little more time by changing a timeout somewhere in the code?

I use ssl and a port number in my setup.

I'm happy to try patches if needed.
 
Logged Logged  
 
Menno Dekker
  The administrator has disabled public write access.
#17487
Mazi (Moderator)
Moderator Lime
Posts: 3373
graph
User Online Now Click here to see the profile of this user
Re:Confusing email problem upgrading 1.70+ to 1.71+ 3 Months, 3 Weeks ago Karma: 28  
mdekker wrote:
So I suppose somewhere the server is a bit slow in responding, maybe someone could try to give the server a little more time by changing a timeout somewhere in the code?
I don't thing that this can be set by limesurvey because this is a server setting of the mailserver!?
 
Logged Logged  
 
Best regards,
Mazi
______________________
Need help? I can: set up Limesurvey for you / create your survey / implement additional features / design your template / offer premium support -> Contact.
  The administrator has disabled public write access.
#17507
mdekker (User)
Senior Lime
Posts: 40
graphgraph
User Offline Click here to see the profile of this user
Re:Confusing email problem upgrading 1.70+ to 1.71+ 3 Months, 3 Weeks ago Karma: 0  
I don't know... I was hoping that Limesurvey could wait a little longer for the connection to be established. I saw some timeout options in the phpmailer code but I am not sure what to change and where.
 
Logged Logged  
 
Menno Dekker
  The administrator has disabled public write access.
#17529
c_schmitz (Admin)
Moderator Lime
Posts: 1365
graphgraph
User Online Now Click here to see the profile of this user
Re:Confusing email problem upgrading 1.70+ to 1.71+ 3 Months, 3 Weeks ago Karma: 39  
Hi!

You can try setting a higher timeout, although it is at 10 seconds at hte moment, which is high.

Edit common.php, look for the line

$mail = new PHPMailer;


and insert this line after that

$mail->$Timeout = 20;

This sets it to 20 seconds.

Please test and tell us if it works for you better.
 
Logged Logged  
 
Best regards

Carsten Schmitz
LimeSurvey Project Leader
  The administrator has disabled public write access.
Go to top