Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Coppermine Gallery E-Card to multiple recipients  (Read 9956 times)

0 Members and 1 Guest are viewing this topic.

acehbee

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Coppermine Gallery E-Card to multiple recipients
« 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)?
« Last Edit: December 28, 2004, 05:23:27 am by GauGau »
Logged

skybax

  • VIP
  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 180
    • SKYBAX Communications
Re: Coppermine Gallery E-Card to multiple recipients
« Reply #1 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)
Logged
(https://forum.coppermine-gallery.net/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

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
Re: Coppermine Gallery E-Card to multiple recipients
« Reply #2 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.
Logged

brackers

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
Re: Coppermine Gallery E-Card to multiple recipients
« Reply #3 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.
Logged

Tod

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: Coppermine Gallery E-Card to multiple recipients
« Reply #4 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>
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Coppermine Gallery E-Card to multiple recipients
« Reply #5 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.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Coppermine Gallery E-Card to multiple recipients
« Reply #6 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
Logged

Tranz

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 6149
Re: Coppermine Gallery E-Card to multiple recipients
« Reply #7 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.
Logged

Tod

  • Coppermine newbie
  • Offline Offline
  • Posts: 15
Re: Coppermine Gallery E-Card to multiple recipients
« Reply #8 on: December 27, 2004, 08:24:36 pm »

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
Logged

jasonpell

  • Contributor
  • Coppermine newbie
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 15
    • I-Am-Vegan.net
Re: Coppermine Gallery E-Card to multiple recipients
« Reply #9 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
Logged
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 16 queries.