• I have a wedding photography blog http://www.imaginethat.uk.net/blog/?cat=18
    where i put up a blog of every wedding i do – so far so good. And every time someone comments on a post i get an email telling me about the comment – great, stay with me now…

    What i really want to do, is that every time a post gets a comment i want wordpress to send an email to my client as well as me i.e i want to link a particular post to a specific email address and send a you’ve got a comment email to the couple – just so we are clear – i creat post for Tara and Chris images – someone comments – wordpress send email to me and Tara & Chris.

    Is this a hope to far or is there a clear way to do it only i have search the web and no joy – this forum is my first and last hope.

    Thanks Keith

Viewing 1 replies (of 1 total)
  • I don’t have time to work this out for you, but I can tell you how I would approach it.

    When you create the post, to enter the client’s email address in a custom field on that post. If you want their names referenced in the email, create another custom field containing their names.

    The WP function that notifies the post author when a comment is posted appears to be wp_notify_postauthor() in wp file wp-includes/pluggable.php

    You need to either modify, or have someone modify, that code, to send the email to both the post author (you) and also the email address from the custom field, if there is an email address in the custom field. You can also change the email’s message in that function. This can be handled written as a plugin, or as code you put in your theme’s functions.php file. Either will override the default WordPress code for that function.

    Keep in mind, if 15 comments come in a day, they will receive 15 separate emails.

Viewing 1 replies (of 1 total)
  • The topic ‘There’s no one liner for this problem – It may be beyond even the best’ is closed to new replies.