Coppermine Gallery E-Card to multiple recipients Coppermine Gallery E-Card to multiple recipients
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Coppermine Gallery E-Card to multiple recipients

Started by acehbee, October 14, 2004, 09:39:45 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

acehbee

How do you set the e-card so that it will accept multiple email recipients (comma separated or semi-colon separated)?

skybax

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)
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.skybax.com%2FhotImage%2Fpost_footer.gif&hash=338b65c57a59f0b06311094e697c87794e43d945)
Don't contact me for support over PM or email unless I requested you to do so. Instead: post on the proper board.

acehbee

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.

brackers

Hi folk,
Has anyone got anywhere with sending e-cards to multiple recipients or was it deemed a bit to spammy.
Thanks in advance.

Tod

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>

Tranz

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.

Joachim Müller

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

Tranz

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.

Tod

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

jasonpell

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