- Posts: 348
- Thank you received: 41
Welcome to the LimeSurvey Community Forum
Ask the community, share ideas, and connect with other LimeSurvey users!
Does email to user group work?
- Jmantysalo
- Topic Author
- Offline
- Platinum Member
Less
More
4 years 4 days 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.
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
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 348
- Thank you received: 41
4 years 3 days 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?
$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
- Offline
- LimeSurvey Community Team
Less
More
- Posts: 13622
- Thank you received: 2489
4 years 3 days ago #197417
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 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
- Topic Author
- Offline
- Platinum Member
Less
More
- Posts: 348
- Thank you received: 41
4 years 2 days 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.
Btw, 4.1.17 is not in the list of versions in the bug tracker.
The topic has been locked.