Is there a plugin for this?

leehughes

Regular Member
Joined
Jul 11, 2010
Messages
255
Reaction score
19
I just commented on a friends blog and I got a email saying thank you for commenting etc..

I thought it was pretty simple and effective way to keep your users sweet and you could also add extra stuff like promotional offers in there.

Is there a plugin that can do this?
 
Hmm I think you would simply edit the file which posts the comment by adding something similar to this:

PHP:
<?php
$to = $wordpressemailfunction
$subject = 'Thanks for commenting';
$message = 'Thanks for commenting on my blog! You may also find this and this intersting! Check it out!';
$headers = 'From: [email protected]' . "\r\n" .
    'Reply-To: [email protected]' . "\r\n" .
    'X-Mailer: PHP/' . phpversion();

mail($to, $subject, $message, $headers);
?>
 
wow.. i'll try it :)

Don't understand what it means but I will add my text and copy and paste it in :D

Cheers
 
Back
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features and essential functions on BlackHatWorld and other forums. These functions are unrelated to ads, such as internal links and images. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock