i have a code as : $from = "my@mail.net"; $to = $smail; $title = "Hello"; $message = "<font face='verdana' size='2'>Hello,<p>How's everything?</p>Here is the code you need to insert into your webpage.</font>"; $zden = "<a href='http://www.mysite.net' target='_blank'>My site</a>"; $header = "From: Me <my@mail.net>\n"; $header .= "X-Sender: <mail@mail.net>\n"; $header .= "X-Mailer: PHP\n"; $header .= "X-Priority: 2\n"; $header .= "Return-Path: <admin@mail.net>\n"; $header .= "Content-Type: text/html; charset=iso-8859-1\n"; # Sending @mail( $to, $title, $message, $zden, $header); } Code (markup): Okey i am trying to display the link code as a code not as html so they can copy the link code and paste it to their webpage. But because the e-mail is sent on html format it's not making it look like a code it makes it just a link. Anyone help me please?
Or i did something like this and it works too $zden = "<textarea><a href='http://www.mysite.net' target='_blank'>My site</a></textarea>"; Thanks for help
or use something like : $zden = "<a href='http://www.mysite.net' target='_blank'>My site</a>"; $zden = htmlentities($zden); PHP: