Under my users profile, they have an option to add an additional email address.

Is there any way that a mass contact message can be sent their registration email address AND to their other email address.

Failing this, is there anyway I can add a list of additional emails addresses that I want to send a mass contact message to?

Thanks in advance.

Comments

oadaeh’s picture

Component: User interface » Categories

That additional email field is there as a result of some other contrib module. As there is no defined way of adding email addresses to accounts, I would need to know the module in use and then investigate how it adds the address to the user account. Then I would have to create code for looking for the address, adding it(them) to the list of options, adding an admin UI for allowing it to happen, and incorporate the address(es) into the sending process. It's probably not a terribly difficult process, but it would be long and drawn out. It's also probably something that would be done as a ctools plugin (which was added here: #144343: Alternate user grouping methods? . . .) to make it modular and require less mucking with the main module.

This is probably also related to #213918: do not force sender to rely on categories, #591982: Free selectable recipients, and/or #1235858: Individual Users although it would require slightly different code than those.

sphankin’s picture

Hi oadaeh,

Thanks for the extremely fast response! When a user creates an account, they fill in two parts of a registration. They add their main email address under the normal account (using logintoboggan) and that is then used to send emails to from mass contact. When the also fill in the registration page, the Profile2 module also asks for additional information, such as an additional email address. This is then stored in their 'Profile' and added manually to our email address book. (eg a member can have a personal and work email)

Don't worry if it's going to be complicated, I'm sure I can find another solution (or maybe my users should be happy they at least receive one email!) I will have a look at CTools and have a read. Thanks for the tip.

Thanks for a great module!

oadaeh’s picture

Version: 7.x-1.0-alpha5 » 7.x-1.x-dev

Thanks for the extremely fast response!

And now a not so fast response. :^)

When a user creates an account, they fill in two parts of a registration. They add their main email address under the normal account (using logintoboggan) and that is then used to send emails to from mass contact.

That field is actually provided by Drupal core and not the LoginToboggan contrib module.

When the also fill in the registration page, the Profile2 module also asks for additional information, such as an additional email address. This is then stored in their 'Profile' and added manually to our email address book. (eg a member can have a personal and work email)

That makes the problem even more challenging in that the second email address field you have is a custom difined one. I can't go to some module's code, see how and where they are adding it and then make use of it. Because it is a custom defined field, it could be called anything. What I would probably have to do, in order to provide you your desired functionality, is to display a list of all available fields on the site and allow you to select which ever ones you wanted to utilize. It might not be too terribly involved, and might provide for some interesting interaction with Drupal 7, but it's also not currently on my radar.

Thanks for a great module!

You are welcome.

tjtj’s picture

I too have a need for this feature. Making a second account for each address is not a good option. Selecting the additional field(s) to include on the mailing list would be the right way to do this.