- Posts: 6
- Thank you received: 0
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Setting a global "From" field for sending e-mails (work around)
- alexandrelefebvre
- Topic Author
- Offline
- New Member
Less
More
4 years 7 months ago #188739
by alexandrelefebvre
Setting a global "From" field for sending e-mails (work around) was created by alexandrelefebvre
Hello,
Limesurvey 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.
For information and as a work around, the following "brute-force trick" does the job.
Clearly, this is a missing feature in Limesurvey to be able to specify globally the From and FromName fields.
Best,
alex
Limesurvey 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.
For 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 = 'your.email@your.domain';
$this->FromName = 'Your Name';
$this->Sender = 'your.email@your.domain';
using the email and name which will be trusted when sending e-mail
Clearly, this is a missing feature in Limesurvey to be able to specify globally the From and FromName fields.
Best,
alex
The topic has been locked.
- jelo
- Offline
- Platinum Member
Less
More
- Posts: 5033
- Thank you received: 1257
4 years 7 months ago #188789
by jelo
www.limesurvey.org/community/feature-requests
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
Replied by jelo on topic Setting a global "From" field for sending e-mails (work around)
Submitting or supporting a feature request will help to informa the developers about the missing feature.alexandrelefebvre wrote: Clearly, this is a missing feature in Limesurvey to be able to specify globally the From and FromName fields.
www.limesurvey.org/community/feature-requests
The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users
The topic has been locked.
- alexandrelefebvre
- Topic Author
- Offline
- New Member
Less
More
- Posts: 6
- Thank you received: 0
4 years 7 months ago #188790
by alexandrelefebvre
Replied by alexandrelefebvre on topic Setting a global "From" field for sending e-mails (work around)
Thanks jelo.
I've just submitted the feature request.
Best.
I've just submitted the feature request.
Best.
The topic has been locked.
- DenisChenu
- Away
- LimeSurvey Community Team
Less
More
- Posts: 13643
- Thank you received: 2491
4 years 7 months ago - 4 years 7 months ago #188795
by DenisChenu
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Replied by DenisChenu on topic Setting a global "From" field for sending e-mails (work around)
My answer on this feature (personnal opinion)
bugs.limesurvey.org/view.php?id=15282
bugs.limesurvey.org/view.php?id=15282
- Admin email can be edited on the survey settings
- This can be «easily» done using a plugin using beforeTokenEmail
- There are already a core plugin in core of LS4 (next version): mailSenderToFrom
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member, professional service on demand , plugin development .
I don't answer to private message.
Last edit: 4 years 7 months ago by DenisChenu. Reason: core of LS4 (next version)
The following user(s) said Thank You: alexandrelefebvre
The topic has been locked.