View Issue Details

IDProjectCategoryView StatusLast Update
15282Feature requestsUser / Groups / Rolespublic2020-09-03 08:17
Reporteralexandrelefebvre Assigned To 
Status newResolutionopen 
Summary15282: Global "From" field for sending e-mails
DescriptionLimesurvey uses the survey administrator e-mail as the "From" field of e-mails being sent.
This causes problems: at best emails are handled as spams/phishing, and for some e-mail domains, they are simply not delivered at all.

As we understand, we haven't found a global settings parameter to replace the survey administrator e-mail in the "From" field with a unique trusted e-mail address.

Clearly, this is a missing feature in Limesurvey to be able to specify globally the From and FromName fields.
Additional InformationFor information and as a work around, the following "brute-force trick" does the job.

    edit file application/third_party/phpmailer/src/PHPMailer.php
    look for function setFrom
    comment out lines
    $this->From = $address;
    $this->FromName = $name;
    if ($auto) {
    if (empty($this->Sender)) {
    $this->Sender = $address;
    replace them with
    $this->From = '';
    $this->FromName = 'Your Name';
    $this->Sender = '';
    using the email and name which will be trusted when sending e-mail
TagsNo tags attached.




2019-09-16 09:46

developer   ~53576


1. Admin email can be edited on the survey settings
2. This can be «easily» done using a plugin using [beforeTokenEmail](
3. There are already a core plugin in core : [mailSenderToFrom](

Then : against such issue in core by default.


2019-09-16 09:58

reporter   ~53577

Thanks for the tip!


2019-09-16 10:12

developer   ~53580

mailSenderToFrom are only in 4.0, but code can be copy/pasted for 3;X and little adaptation (for beforeTokenEmail usage for starting)


2020-09-02 21:49

reporter   ~59695

@DenisChenu : I'd be interested in donating $ to make the mailSenderToFrom plugin compatible with LS 3.23 ... is this a possiblity?


2020-09-03 08:17

developer   ~59696

You have my professional email i think :)

Issue History

Date Modified Username Field Change
2019-09-16 09:20 alexandrelefebvre New Issue
2019-09-16 09:46 DenisChenu Note Added: 53576
2019-09-16 09:58 alexandrelefebvre Note Added: 53577
2019-09-16 10:12 DenisChenu Note Added: 53580
2019-11-01 17:26 c_schmitz Category User/User groups => User / Groups / Roles
2020-09-02 21:49 blocka Note Added: 59695
2020-09-03 08:17 DenisChenu Note Added: 59696