Closed (fixed)
Project:
Send
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
26 Oct 2006 at 21:53 UTC
Updated:
18 Apr 2007 at 00:24 UTC
Allow for an alternate 'multi recipeient' mode which allows a sender to specify multiple email addresses rather than just one.
In this mode, the send form will not contain first, last name fields but instead a single text area in which sender will enter a list of email recipients separated by a new line.
Admin will specify mode in admin/settings. Default mode will be existing single-recipient mode.
This feature has be requrested by a client of mine, and I will submit a patch when this feature is completed. Hopefully it can be integrated for use by others :)
Harry
Comments
Comment #1
allie mickaYou should be able to do this with a form_alter.
Send will respect a form value called 'recipients' that contains a space/comma/newline-delimited list of addresses. Try something like this (not guaranteed to work)
Comment #2
harry slaughterThanks Allie,
This does indeed work.
If anyone else is interested, here's all the module code you need:
Comment #3
Marc Bijl commentedHi Harry,
Looks promising to me! However, as I'm not a programmer, I don't fully understand what changes should be made to existing files to get this working. Tried a bit, but unfortunately with no result. Please, can you explain how I should edit?
Thanks!
Comment #4
harry slaughterI suppose instructions may help :)
It's simple.
1) Create a file in your modules directory called 'send_multi_recipient.module'
2) paste the contents of the code into that file as-is. make sure you're editor doesn't do anything funky with the code
3) save/exit
4) enable the send_multi_recipient module in admin/modules
That's it.
Comment #5
Marc Bijl commentedIt works pretty good, cool! However, if I use this for the tell a friend function, something strange happens with all the images that are on the page. For example, sending a page which contains 3 images:
- The 1st recipient receives a mail with images embedded in the mail
- The 2nd recipient receives a mail with images embedded in the mail, and 3 image attachments
- The 3rd recipient receives a mail with images embedded in the mail, and 6 image attachments
- The 4th recipient receives a mail with images embedded in the mail, and 9 image attachments
- et cetera
Another detail: in the message box, a separate message (confirmation) will be displayed for each person that will receive the mail.
Comment #6
Marc Bijl commentedAs the status of this issue is set to duplicate, I think it's neccessary to set the status of the issue here to "code needs work" (as the solution provided above has some drawbacks).
Comment #7
allie mickaThis behavior is from the Mime Mail Issue that I closed yesterday.
I backported those changes to Mime Mail 4.7, and tomorrow's version of the nightly build should reflect this.
Comment #8
Marc Bijl commentedA bit late but: thanks!
Comment #9
jsimonis commentedAn updated version for 5.x?
I tried that code, but the module doesn't even show up on the modules page.