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?
 

Sprouts

Regular Member
Joined
Mar 20, 2010
Messages
463
Reaction score
328
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);
?>
 

leehughes

Regular Member
Joined
Jul 11, 2010
Messages
255
Reaction score
19
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
 
Top