Project

General

Profile

Need help mailing to a group from plugin.

Added by Ben Martinek about 13 years ago

Hi!

First post.

I have been modifiying the Redmine Whinig plugin to give status updates on projects, but I want to be able to email a group and so far have only been able to email memebrs of a project.

I have been modifying the plugin to accept the group as a user which it does, but it doesn't have an associated email address, nor an array of members :-(
#<Group id: 39, login: "", hashed_password: "", firstname: "", lastname: "dashboard", mail: "", mail_notification: true, admin: false, status: 1, last_login_on: nil, language: "", auth_source_id: nil, created_on: "2011-03-21 21:37:08", updated_on: "2011-03-21 21:37:08", type: "Group", identity_url: nil>

and hence fails:
sendmail: fatal: my.name(1002): No recipient addresses found in message header
postdrop: warning: stdin: unexpected EOF in data, record type 78 length 74
postdrop: fatal: uid=1002: malformed input
group:

The Whinig pluging is using the Mailer class.

Any suggestions on how to use the group as an email recipient: