Support » Fixing WordPress » "Mail to a friend" html code

Viewing 3 replies - 1 through 3 (of 3 total)
  • Try:

    <a href="mailto:blank?subject=<?php the_title(); ?>&body=I thought you might be interested in <?php the_title(); ?>. You can view it at: <?php the_permalink() ?>">Send to a friend</a>

    works like a charm!
    Thanks very much!

    hi, i think this is related to the above question. i’m using this code…

    $out .= "<br />". __("Send a thanks to","wp-greet")." </th><td>". $res->fromname . " <" . $res->frommail . ">";

    …to display the following message:

    Send a thanks to Name <>

    my problem is, i don’t know how to turn the <> into a link so that when clicked it launches an email client and sets it as the “to” field, much like mailto: would do.

    is this possible? any hints would be appreciated.


Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘"Mail to a friend" html code’ is closed to new replies.