Re: just a link in php email

From: Date: Sat, 09 Mar 2002 07:23:09 +0000
Subject: Re: just a link in php email
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-87861@lists.php.net to get a copy of this message
Hi Andrea! I use this. $message="<a href=\"http://www.sever.com\">link</a>"; $message = stripcslashes($message); $headers .= "Return-Path: <jan@lillemanshus.com>\n"; $headers .= "Reply-To:$admail\n"; $headers .= "From: $admail\n"; $headers .= "X-Mailer: PHP\n"; $headers .= "Content-Type: text/html; charset=iso-8859-1\n"; mail($recipient, $subject, $message, $headers); Regards, Jan "Andrea Caldwell" <acaldwell@limitlessweb.com> skrev i meddelandet news:20020308190448.95296.qmail@pb1.pair.com... > Hi All, > > I've been researching the mail() function and from what I've read, some > people embed HTML into their mail() without using classes. All I need to do > is add a link in an email... can anyone advise how I would do this? Which > headers would I need? I was using: > > $headers = "MIME-Version: 1.0\r\n"; > $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; > > but getting a wrong parameter count for mail. How do I add more than one? > Then how do I code the link in the $mailcontent? I was using single quotes > for the anchor tags, is that correct? Not sure if that works since my > headers weren't working. > > Thanks for your help w/ a novice, > ~AC > > > > >

« previous php.general (#87861) next »