Member
Member
miky76   16-03-2009, 23:14
#1

Hi,
I would like to send an email when somebody write a comment in the gallery,
I tryed to set the email address in the Admin, but I still don't send emails

What can I do for it?

Member
Member
sbillard   17-03-2009, 02:32
#2

To whom do you want to send the mail? When do you want it sent?

Member
Member
miky76   17-03-2009, 19:29
#3

yes you are right, I didn't give you enough info,

when somebody write a comment to a picture, I'd like that an email is sent with a custom text to the author of the gallery and to the Admin.

is it possible?

thanks

Administrator
Administrator
acrylian   17-03-2009, 19:46
#4

You need to enable the checkbox on options > comment configuration. A custom text is not possible though.

Member
Member
miky76   20-03-2009, 00:21
#5

the "Enable comment notification" is already enabled and a valid email address is set for the Admin.

If I use the code below in a page, I receive the email in my email address, so I don't understand why I don't get the one from the comment

Member
Member
sbillard   20-03-2009, 00:54
#6

Well, zenphoto is using zp_mail($subject, $message, $headers, $to) to send the messages. Not really the same thing. Maybe you can try this function on your page to see if it works.

Member
Member
miky76   20-03-2009, 01:08
#7

in which file can I find the zp_mail function? (for import it in my page)

Member
Member
sbillard   20-03-2009, 02:03
#8

It is in functions.php. However, you do not need to import it. It will be available to your page.

Administrator
Administrator
acrylian   20-03-2009, 16:47
#9

It might be that your server is not configured for php mailing or it is not allowed. Our mail function uses actually the standard php mail() function as a base.

Member
Member
miky76   23-03-2009, 22:25
#10

OK I made ti to work, thank you!!

Now, how can I send the email to the owner of the picture or to the person that wrote the previous comment?

Member
Member
sbillard   24-03-2009, 00:07
#11

There is a plugin named filter-comments.php that is part of the 1.2.4 release. You can get a preview of this release by downloading the nightly build.

You can make modifications to this plugin to do what you wish. At present it will send the mail to everyone who has posted a comment on the image.

Member
Member
miky76   24-03-2009, 20:19
#12

ok I'll wait the release of the 1.2.4

thanks

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.