coppermine-gallery.com/forum

Support => cpg1.3.x Support => Older/other versions => cpg1.3 Ecards & Email => Topic started by: acehbee on October 14, 2004, 09:39:45 PM

Title: Coppermine Gallery E-Card to multiple recipients
Post by: acehbee on October 14, 2004, 09:39:45 PM
How do you set the e-card so that it will accept multiple email recipients (comma separated or semi-colon separated)?
Title: Re: Coppermine Gallery E-Card to multiple recipients
Post by: skybax on October 14, 2004, 09:53:50 PM
just off the top of my head you would use comma; however I believe it would be better to code in a loop so that it checks for the comma then sends individually the ecard to each receiptiant - because I don't think that the smtp server will process the request if you have the commas.

To uncomplicate what I just said: you need to write code to include multiple addresses - or make it so that the script will process the address and name lines looking for whatever character you decide to seperate each person with and then loop through sending the request.

-T 8)
Title: Re: Coppermine Gallery E-Card to multiple recipients
Post by: acehbee on October 14, 2004, 10:40:08 PM
By default code form Coppermine, comma or semi-colon is not allowed in the email field.  I am wondering if anyone has attempt to modified the code to do the looping.  I am not familiar enough with php, even though I am sure I would be able to find it out being a java developer.  but working on development at work makes me don't want to work on more development at home  ;).  I want to put the request on the mods forum, but I don't have permission to post new message there.
Title: Re: Coppermine Gallery E-Card to multiple recipients
Post by: brackers on December 20, 2004, 04:11:29 PM
Hi folk,
Has anyone got anywhere with sending e-cards to multiple recipients or was it deemed a bit to spammy.
Thanks in advance.
Title: Re: Coppermine Gallery E-Card to multiple recipients
Post by: Tod on December 27, 2004, 08:51:46 AM
Urg.  I am not a coder and the thought of trying to change scripts and templates give me the willies.

I, too, would like to see a solution that would allow us non-coders to add this feature.  I've had several visitors ask how to send the same ecard to several friends without entering the same greeting and message several times.  It's just as hard hitting the "back" arrow on the browser to get to the page where you had already entered the greeting/message.

As a user (not as admin) I myself have wanted to send out ten ecards to people to let them know that a certain album has been uploaded.

Unfortunately from the looks of things at this topic http://forum.coppermine-gallery.net/index.php?topic=1228 (admin mass mailings) such a feature will be long in coming.  <sigh>
Title: Re: Coppermine Gallery E-Card to multiple recipients
Post by: Tranz on December 27, 2004, 09:02:50 AM
But that's life... if no one else will do it, you gotta do it yourself. If you can't do it, you offer to pay someone.
Title: Re: Coppermine Gallery E-Card to multiple recipients
Post by: Joachim Müller on December 27, 2004, 10:41:07 AM
additional features that will make coppermine send out even more emails (adding to the global spam problem) will definitely not go into coppermine core code, that's why developers are reluctant to code anything that is related to additional emails being sent from coppermine (e.g. the extremely buggy "admin mass mails" mod you're refering to). As TranzNDance aleady suggested: if you need it badly, you'll probably have to hire someone.

Joachim
Title: Re: Coppermine Gallery E-Card to multiple recipients
Post by: Tranz on December 27, 2004, 10:50:31 AM
If you want to send ecards to multiple users, a workaround (that I have used) is to send the ecard to yourself. Then you can resend/forward the message. At least that way you can use your email client's addressbook.

And don't moan about it being too much work if you aren't going to be coding it so that you don't have to do it that way.
Title: Re: Coppermine Gallery E-Card to multiple recipients
Post by: Tod on December 27, 2004, 08:24:36 PM
Quote from: GauGau on December 27, 2004, 10:41:07 AM
additional features that will make coppermine send out even more emails (adding to the global spam problem) will definitely not go into coppermine core code...

Wow.  GauGau, you've hit the nail on the head!  I hadn't thought of the spam aspect. I totally agree with the reluctance of you developers to add such a feature based on this revelation.

No, I don't need it bad enough to hire someone to do it, and I don't want to be forever associated with the stigma of giving CPG the capability of sending massive (spam) ecard mailings.  :D

And thanks to TranzNDance for the workaround.  And I'll take your advice and will avoid moaning about it being too much work...

-Tod
Title: Re: Coppermine Gallery E-Card to multiple recipients
Post by: jasonpell on July 25, 2005, 06:00:20 AM
Hi,

Please find attached a diff of ecard.php in 1.33 that allows sending to multiple people, using comma delimiter.  I don't know if this has already been done elsewhere, but it works for me.  A single ecard record is inserted (if logging enabled), and the recipient email field in the table contains all the recipient addresses.  I considered inserting a ecard record per recipient, but felt that was overkill.  A small additional change to the code would achieve it however.

Cheers
Jason