View Issue Details

This bug affects 1 person(s).
 4
IDProjectCategoryView StatusLast Update
04142Bug reportsOtherpublic2010-03-19 17:02
Reporterelameno Assigned Toc_schmitz  
PrioritynormalSeverityminor 
Status closedResolutionfixed 
Product Version1.87+ 
Fixed in Version1.87+ 
Summary04142: Reminder email "from" field isn't set properly
Description

When sending email reminders the from field is set to root@[domain] rather than the survey administrator. The invite email from field works fine. The problem appears to be line 508 and I'll submit a patch.

The code I'm running is direct from the stable Lime branch and is labeled 1.87+

TagsNo tags attached.
Attached Files
reminder_from_fix.diff (826 bytes)   
Index: admin/remotecontrol/lsrc.helper.php
===================================================================
--- admin/remotecontrol/lsrc.helper.php	(revision 8408)
+++ admin/remotecontrol/lsrc.helper.php	(working copy)
@@ -504,7 +504,8 @@
 						$found = array_search($emrow['language'], $surveylangs);
 						if ($found==false) {$emrow['language']=$baselanguage;}
 							
-						$from = $_POST['from_'.$emrow['language']];
+						//$from = $_POST['from_'.$emrow['language']];  // causes email to be from root@[domain] - Dave Wolff
+						$from = $thissurvey['adminemail'];	
 							
 						if (getEmailFormat($surveyid) == 'html')
 						{
@@ -4332,4 +4333,4 @@
 		}
 		return "".$iCountParticipants."Datasets given, ".$iInsertedParticipants." rows inserted. ";
 	}
-}
\ No newline at end of file
+}
reminder_from_fix.diff (826 bytes)   
Bug heat4
Complete LimeSurvey version number (& build)8403
I will donate to the project if issue is resolved
Browser
Database type & versionMySQL 5
Server OS (if known)Windows XP
Webserver software & version (if known)Apache 2.2
PHP Version5.2.10

Users monitoring this issue

elameno

Activities

c_schmitz

c_schmitz

2010-03-10 21:40

administrator   ~11293

Thank you very much. Fixed in rev. 8475

Issue History

Date Modified Username Field Change
2010-02-17 16:51 elameno New Issue
2010-02-17 16:51 elameno Status new => assigned
2010-02-17 16:51 elameno Assigned To => rakete
2010-02-17 16:51 elameno File Added: reminder_from_fix.diff
2010-02-17 16:51 elameno LimeSurvey build number => 8403
2010-02-17 16:51 elameno Database & DB-Version => MySQL 5
2010-02-17 16:51 elameno Operating System (Server) => Windows XP
2010-02-17 16:51 elameno Webserver => Apache 2.2
2010-02-17 16:51 elameno PHP Version => 5.2.10
2010-02-22 17:46 elameno Issue Monitored: elameno
2010-03-10 21:40 c_schmitz Note Added: 11293
2010-03-10 21:40 c_schmitz Status assigned => resolved
2010-03-10 21:40 c_schmitz Fixed in Version => 1.87+
2010-03-10 21:40 c_schmitz Resolution open => fixed
2010-03-10 21:40 c_schmitz Assigned To rakete => c_schmitz
2010-03-19 17:02 c_schmitz Status resolved => closed
2011-10-20 18:29 c_schmitz Category RemoteControl => (No Category)
2021-08-06 12:09 guest Bug heat 2 => 4