Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

LS v3 : emails sent by administrator only

  • Kaaviar
  • Kaaviar's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 4 months ago #210998 by Kaaviar
Hello,

I've been playing with LS for a couple of weeks now.
When it came to the point of configuring SMTP server, my sys admin told me it would be very damageable for our SMTP server if LS sent email from an expeditor out of our domain name.
It seems that when a survey admin send invitation or reminders, its his email adress that is used as the sender by default.
Is it possible to force an email adress (administrator email adress for example) for every email sent by LS v3 ?

Thanks for your answers.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 4 months ago #211006 by tpartner
Replied by tpartner on topic LS v3 : emails sent by administrator only
That should be in the survey setting General settings --> Administrator email address.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • Kaaviar
  • Kaaviar's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 4 months ago #211011 by Kaaviar
Replied by Kaaviar on topic LS v3 : emails sent by administrator only
That's where the user can change the email address I'd like him not to be able to change.
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 4 months ago #211019 by tpartner
Replied by tpartner on topic LS v3 : emails sent by administrator only
You could create a custom admin theme and use JavaScript to load that input and either hide it or render it readonly.

The admin could hack around that if they really try but then you just fire them. :)

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team & Official Partner
  • LimeSurvey Community Team & Official Partner
More
4 years 4 months ago #211040 by DenisChenu
Replied by DenisChenu on topic LS v3 : emails sent by administrator only
You can create a plugin for this
www.limesurvey.org/manual/BeforeTokenEmail

In such plugin : you have to use
Code:
$this->getEvent()->set('from', "theemail@example.org");

Sample for 3 : github.com/LimeSurvey/LimeSurvey/blob/ma...mailSenderToFrom.php
But update all in public function beforeEmail()

Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. - Professional support - Plugins, theme and development .
I don't answer to private message.
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose