Adding Link to PHP Email?

For some reason I cant seem to get a link to show up in the email that is sent to the user. I get the email using but it shows the code not a link. With its an error and doesnt send.

Here is the current code:
[php]$ip=$_SERVER[‘REMOTE_ADDR’];
$email_to = $_POST[“email”];
$email_subject = “Thank you”;

$email_message1 = "Thank you for redeeming your initiation pass!

Print Here

Sincerely,

";[/php]

I don’t understand.

I get the email using but it shows the code not a link. With its an error and doesnt send.

What do you mean by that?

<a href='images/initiation.jpg'>Print Here</a>

This isn’t going to work in an email regardless. You need a fully qualified path.

He is wanting to send HTML email.

Ahh, double quotes breaks the string variable causing the error.

In order to send html mail, you need html headers.

Kevin probably has those handy, I’m off the computer for the night and don’t know the string from memory.

Sponsor our Newsletter | Privacy Policy | Terms of Service