Hi Andrea!

I use this.
$message="<a href=\"http://www.sever.com\";>link</a>";

$message = stripcslashes($message);
$headers .= "Return-Path: <[EMAIL PROTECTED]>\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" <[EMAIL PROTECTED]> skrev i meddelandet
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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
>
>
>
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to