Portada arrow Soporte 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 Post Reply 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+ 1 Month, 1 Week 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.
Enter code here   
Please note, although no boardcode and smiley buttons are shown, they are still useable
 
Logged Logged  
 
Last Edit: 2008/08/11 17:33 By Mazi.
  Reply Quote
#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+ 1 Month ago Karma: 0  
Just an update, I have tried using the "mail" setting as well, to no avail.
Enter code here   
Please note, although no boardcode and smiley buttons are shown, they are still useable
 
Logged Logged  
  Reply Quote
#16643
Joe (User)
Platinum Lime
Posts: 361
graphgraph
User Offline Click here to see the profile of this user
Re:Confusing email problem upgrading 1.70+ to 1.71 1 Month 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).
Enter code here   
Please note, although no boardcode and smiley buttons are shown, they are still useable
 
Logged Logged  
 
Last Edit: 2008/07/25 14:07 By ElMatador69. Reason: corrected link
  Reply Quote
#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+ 1 Month 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.
Enter code here   
Please note, although no boardcode and smiley buttons are shown, they are still useable
 
Logged Logged  
  Reply Quote
#16646
Joe (User)
Platinum Lime
Posts: 361
graphgraph
User Offline Click here to see the profile of this user
Re:Confusing email problem upgrading 1.70+ to 1.71 1 Month 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
Enter code here   
Please note, although no boardcode and smiley buttons are shown, they are still useable
 
Logged Logged  
  Reply Quote
#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+ 1 Month 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?
Enter code here   
Please note, although no boardcode and smiley buttons are shown, they are still useable
 
Logged Logged  
 
Last Edit: 2008/07/25 18:10 By DaMoisture.
  Reply Quote
#17470
mdekker (User)
Junior Lime
Posts: 38
graphgraph
User Offline Click here to see the profile of this user
Re:Confusing email problem upgrading 1.70+ to 1.71+ 2 Weeks, 4 Days 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.
Enter code here   
Please note, although no boardcode and smiley buttons are shown, they are still useable
 
Menno Dekker
 
Logged Logged  
  Reply Quote
#17487
Mazi (Moderator)
Moderator
Posts: 2325
graph
User Offline Click here to see the profile of this user
Re:Confusing email problem upgrading 1.70+ to 1.71+ 2 Weeks, 4 Days ago Karma: 18  
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!?
Enter code here   
Please note, although no boardcode and smiley buttons are shown, they are still useable
 
Beste Grüße/Best regards,
Mazi
______________________
You can support Limesurvey, too!
 
Logged Logged  
  Reply Quote
#17507
mdekker (User)
Junior Lime
Posts: 38
graphgraph
User Offline Click here to see the profile of this user
Re:Confusing email problem upgrading 1.70+ to 1.71+ 2 Weeks, 3 Days 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.
Enter code here   
Please note, although no boardcode and smiley buttons are shown, they are still useable
 
Menno Dekker
 
Logged Logged  
  Reply Quote
#17529
c_schmitz (Admin)
Admin
Posts: 1276
graphgraph
User Online Now Click here to see the profile of this user
Re:Confusing email problem upgrading 1.70+ to 1.71+ 2 Weeks, 3 Days ago Karma: 40  
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.
Enter code here   
Please note, although no boardcode and smiley buttons are shown, they are still useable
 
Best regards

Carsten Schmitz
LimeSurvey Project Leader
 
Logged Logged  
  Reply Quote
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop