Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jun 2005
    Posts
    35
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How to print anchor text, href in sending mail?

    Hi,

    php code,
    PHP Code:
    <?

    $to  
    'aidan@yahoo.com'//just an example to prevent spamming
    $subject 'Birthday Reminders for August';
    $message "<A HREF=\"www.cnn.com\">CNN</A>";
    $headers  'MIME-Version: 1.0' "\r\n";
    $headers .= 'Content-type: text/html; charset=iso-8859-1' "\r\n";

    // Additional headers
    $headers .= 'To: Mary <mary@example.com>, Kelly <kelly@example.com>' "\r\n";
    $headers .= 'From: Birthday Reminder <birthday@example.com>' "\r\n";
    $headers .= 'Cc: [email]birthdayarchive@example.com[/email]' "\r\n";
    $headers .= 'Bcc: [email]birthdaycheck@example.com[/email]' "\r\n";


    ?>
    The problem with the above is It does print out CNN but when I tried to link cnn.com from my email, it fails to connect to www.cnn.com

    thanks!

  • #2
    New to the CF scene
    Join Date
    Jan 2006
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    hell

    You can try to convert mail to html with it's tags. Then try again.

    Regards
    www.takedom.com


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •