Welcome to the LimeSurvey Community Forum

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

Does email to user group work?

  • Jmantysalo
  • Jmantysalo's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
4 years 1 day ago #197384 by Jmantysalo
Does email to user group work? was created by Jmantysalo
I tested Mail to all members -button with a test group having just me and another user. However, I got

Email to xx- <xx@tuni.fi> failed. Error Message : Message body empty

Can someone check if I am the only one with this bug. If I am not, I'll make a bug report.
The topic has been locked.
  • Jmantysalo
  • Jmantysalo's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
4 years 1 day ago #197387 by Jmantysalo
Replied by Jmantysalo on topic Does email to user group work?
It seems that application/controllers/admin/usergroups.php has code

$mailer->Body = $body;
foreach ($eguresult as $egurow) {
$mailer = \LimeMailer::getInstance(); // To reset error
$mailer->setTo($egurow->users->email, $egurow->users->users_name);
if ($mailer->sendMessage()) . . .

And this error disappears if I but the $mailer->Body = $body -line inside the loop. But what is the right way to use LS mail functions?
The topic has been locked.
  • DenisChenu
  • DenisChenu's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
4 years 5 hours ago #197417 by DenisChenu
Replied by DenisChenu on topic Does email to user group work?
Maybe an issue : please make a bug report and put the link here.

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.
  • Jmantysalo
  • Jmantysalo's Avatar Topic Author
  • Offline
  • Platinum Member
  • Platinum Member
More
4 years 4 hours ago #197437 by Jmantysalo
Replied by Jmantysalo on topic Does email to user group work?
Done that: bugs.limesurvey.org/view.php?id=16160

Btw, 4.1.17 is not in the list of versions in the bug tracker.
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose