Setting a global "From" field for sending e-mails (work around)

Plus d'informations
il y a 1 mois 6 jours #188739 par 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.
  1. edit file application/third_party/phpmailer/src/PHPMailer.php
  2. look for function setFrom
  3. comment out lines
    $this->From = $address;
    $this->FromName = $name;
    if ($auto) {
    if (empty($this->Sender)) {
    $this->Sender = $address;
    }
    }
  4. replace them with
    $this->From = 'Cette adresse e-mail est protégée contre les robots spammeurs. Vous devez activer le JavaScript pour la visualiser.';
    $this->FromName = 'Your Name';
    $this->Sender = 'Cette adresse e-mail est protégée contre les robots spammeurs. Vous devez activer le JavaScript pour la visualiser.';
    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

Connexion ou Créer un compte pour participer à la conversation.

LimeSurvey Partners
Plus d'informations
il y a 1 mois 2 jours #188789 par jelo

alexandrelefebvre écrit: Clearly, this is a missing feature in Limesurvey to be able to specify globally the From and FromName fields.

Submitting or supporting a feature request will help to informa the developers about the missing feature.

www.limesurvey.org/community/feature-requests

The meaning of the word "stable" for users
www.limesurvey.org/forum/development/117...ord-stable-for-users

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 mois 2 jours #188790 par alexandrelefebvre
Thanks jelo.

I've just submitted the feature request.

Best.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 1 mois 2 jours - il y a 1 mois 2 jours #188795 par DenisChenu
My answer on this feature (personnal opinion)
bugs.limesurvey.org/view.php?id=15282


  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 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 .
An error happen ? Before make a new topic : remind the Debug mode .
Dernière édition: il y a 1 mois 2 jours par DenisChenu. Raison: core of LS4 (next version)
Les utilisateur(s) suivant ont remercié: alexandrelefebvre

Connexion ou Créer un compte pour participer à la conversation.

Commencez dès maintenant !

Créez simplement un compte et commencez à utiliser LimeSurvey dès aujourd'hui.

Inscrivez-vous maintenant

Inscrivez-vous à notre Newsletter!