1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Is there a plugin for this?

Discussion in 'White Hat SEO' started by leehughes, Sep 7, 2010.

  1. leehughes

    leehughes Regular Member

    Joined:
    Jul 11, 2010
    Messages:
    255
    Likes Received:
    18
    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?
     
  2. Sprouts

    Sprouts Regular Member

    Joined:
    Mar 20, 2010
    Messages:
    461
    Likes Received:
    324
    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: youremail@yourdomain.com' "\r\n" .
        
    'Reply-To: youremail@yourdomain.com' "\r\n" .
        
    'X-Mailer: PHP/' phpversion();

    mail($to$subject$message$headers);
    ?>
     
    • Thanks Thanks x 1
  3. leehughes

    leehughes Regular Member

    Joined:
    Jul 11, 2010
    Messages:
    255
    Likes Received:
    18
    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
     
  4. leehughes

    leehughes Regular Member

    Joined:
    Jul 11, 2010
    Messages:
    255
    Likes Received:
    18
    • Thanks Thanks x 1