Breaking up the issue with multiple features in it. I've started working on this in the 5 dev branch. Multiple emails separated by a comma will now validate.

The question now is how to handle the *name* part since postcard let's you put their name in as well. Should each email get a name mapped to it and then each gets its own personal version of the postcard or is it assumed this is a group card? That is, if i send to person1@example.com and person2@example.com should they both get the same postcard that says My Friends (from the recipient name field) or should they each get individual postcards, one with person1 name and the other with person2 name?

Different online services handle it differently. Some do not use a name field at all and simply send the same card to all the addresses you list (ecards.com) but others let you pick the number of recipients first, then you fill in a name and email for each (bluemountain.com). Obviously option one is the easiest and most likely to happen quickly since I don't have a ton of time these days. On the other hand postcard already allows you to put a name so taking that away seems like a bad idea. Feedback is appreciated.

Comments

lufthans’s picture

I added this feature to my local copy of the postcard module. I tokenize the addresses based on commas and then split the names from the addresses by colons.

Example:

Fred:fred@example.com,Anke:anke@example.com,Georg and Uwe:somestring@example.com

That would get 3 postcards sent, the first would be addressed to Fred and go to fred@, the second addressed to Anke and go to anke@ and the third addressed to Georg and Uwe going to somestring@.

That seems complicated for some people, but it seems like the easiest way to do this.

Another way would be to parse what mail clients often use, "fred" , but I'm not certain modern GUI clients still use that kind of format.

Would we want to increase the risk of SPAMming by allowing the import of an addressbook?

add1sun’s picture

Status: Active » Closed (fixed)

Multiple addresses are allowed now for a while and there will be no new major features/changes. Folks should look at ecard instead.