Welcome to the LimeSurvey Community Forum

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

Can I set a global e-mail for all email messages sended by limesurvey

  • mferraz
  • mferraz's Avatar Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
5 years 2 weeks ago #181642 by mferraz
Hi.

Is it possible to set a global (noreply) email for all email messages sended by limesurvey?

Just because we are getting a lot of messages sended from a addresses that doesn't permit other servers to send any messages, so in that way those messages are being classified as SPAM.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
5 years 2 weeks ago - 5 years 2 weeks ago #181665 by DenisChenu
By plugin : manual.limesurvey.org/BeforeTokenEmail

Code:
$this->getEvent()->set('from','noreply@example.org');

But only for email for token

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: 5 years 2 weeks ago by DenisChenu.
The topic has been locked.
  • Annharoloi_187812
  • Annharoloi_187812's Avatar
  • Visitor
  • Visitor
4 years 11 months ago #182775 by Annharoloi_187812
Hi Denis,

I tested your example but it doesn't seem to work.

I checked my smtp-server and limesurvey is always trying to access smtp via the mail configured in the corresponding survey. noreply@example.org is only written into the sender of the mail, the authentication on my smtp seems to be wrong.
It doesn't even try to access my smtp via the smtp-settings from the admin-menu.
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 11 months ago #182776 by DenisChenu

herrlevin_ wrote: noreply@example.org is only written into the sender of the mail

It's what you ask no ?

herrlevin_ wrote: the authentication on my smtp seems to be wrong.
It doesn't even try to access my smtp via the smtp-settings from the admin-menu.

? Why is related ?

Try to
Code:
$this->getEvent()->set('from',['noreply@example.org']);
$this->getEvent()->set('bounce','noreply@example.org');

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.
The following user(s) said Thank You: Annharoloi_187812
The topic has been locked.
  • Annharoloi_187812
  • Annharoloi_187812's Avatar
  • Visitor
  • Visitor
4 years 11 months ago #182786 by Annharoloi_187812

herrlevin_ wrote: the authentication on my smtp seems to be wrong.
It doesn't even try to access my smtp via the smtp-settings from the admin-menu.


It's related because most smtp-servers won't allow a "wildcard"-login.

It did now work for me with:
Code:
$this->getEvent()->set('from',''Example <noreply@example.org>');
$this->getEvent()->set('bounce','Example <noreply@example.org>');

Thank you very much!
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 11 months ago #182791 by DenisChenu

herrlevin_ wrote: It's related because most smtp-servers won't allow a "wildcard"-login.

But login is not related to From or Return-Path

except with dumb server … bugs.limesurvey.org/view.php?id=10529

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.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose