![]() |
|
Send Email after a comment - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Send Email after a comment (/thread-4859.html) |
Send Email after a comment - miky76 - 16-03-2009 Hi, What can I do for it? Send Email after a comment - sbillard - 17-03-2009 To whom do you want to send the mail? When do you want it sent? Send Email after a comment - miky76 - 17-03-2009 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 Send Email after a comment - acrylian - 17-03-2009 You need to enable the checkbox on options > comment configuration. A custom text is not possible though. Send Email after a comment - miky76 - 20-03-2009 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 Send Email after a comment - sbillard - 20-03-2009 Well, zenphoto is using Send Email after a comment - miky76 - 20-03-2009 in which file can I find the zp_mail function? (for import it in my page) Send Email after a comment - sbillard - 20-03-2009 It is in functions.php. However, you do not need to import it. It will be available to your page. Send Email after a comment - acrylian - 20-03-2009 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. Send Email after a comment - miky76 - 23-03-2009 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? Send Email after a comment - sbillard - 24-03-2009 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. Send Email after a comment - miky76 - 24-03-2009 ok I'll wait the release of the 1.2.4 thanks |