Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

sending email, links not links

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

sending email, links not links

Postby robbied » Mon Mar 24, 2003 9:19 am

hello,

So I am sending the member an email with confirmation of the info they entered.

In the body of the email they receive, I have a login url that I give to them so they can click it and login. for some reason, the link is not clickable ?

Here's some code:

Code: Select all
<?php

   $subject        = "test email";
   $message        = "<P>http://www.riverendconsulting.ca";
   $site_name      = "some site";
   $admin_email    = "rob@riverendconsulting.ca";
   $required_name  = "bill";
   $required_email = "rob@gobid.ca";
   
   $headers  = "";
   $headers .= "MIME-Version: 1.0\r\n";
   $headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
   $headers .= "From: " . $site_name . " <" . $admin_email . ">\r\n";
   $headers .= "To: " . $required_name . " <" . $required_email . ">\r\n";    
   $headers .= "Reply-To: " . $site_name . " <" . $admin_email . ">\r\n";
      
   mail("", $subject, $message, $headers);
   
   echo "
   <br>subject: $subject
   <br>sent to: <a href=\"mailto:$required_email\">$required_name</a>
   <br>from: <a href=\"mailto:$admin_email\">$site_name</a>
   <br>reply to: <a href=\"mailto:$admin_email\">$site_name</a>   
   <br>message: $message   
   ";
   
?>


Help ?

Thanks
Rob
User avatar
robbied
New php-forum User
New php-forum User
 
Posts: 7
Joined: Wed Feb 19, 2003 8:35 am
Location: Victoria, BC

DOH !

Postby robbied » Mon Mar 24, 2003 9:23 am

sorry ppl, i just answered my own question, I see I forgot to think that I am using HTML tags already in the message body like bold etc and I must href the links to make them clickable.

thanks
Rob
User avatar
robbied
New php-forum User
New php-forum User
 
Posts: 7
Joined: Wed Feb 19, 2003 8:35 am
Location: Victoria, BC


Return to PHP coding => General

Who is online

Users browsing this forum: kiranindia1986 and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron