I have set up a System where I enter in there Email and Name, it sends them a email with all the Information that they need, and all that good stuff. What I want, which I thought would be so simple, is not working. I would like to Enter in a Hyperlink, into the form to show up in there email that they can click to go to a website, but It, just Doesn't want to work!
The default format of a mail() message is plain text. You can not create a clickable link in plain text. You must send the message as html.
See Example 3 on this page: http://www.w3schools.com/PHP/func_mail_mail.asp
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have set up a System where I enter in there Email and Name, it sends them a email with all the Information that they need, and all that good stuff. What I want, which I thought would be so simple, is not working. I would like to Enter in a Hyperlink, into the form to show up in there email that they can click to go to a website, but It, just Doesn't want to work!
<?php
$where_form_is="http://".$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),"/"));
$mysubject="{T&A} Recruitment";
mail($_POST['field_2'],$mysubject,"phpFormGenerator - Form submission","
Hello " . $_POST['field_1'] . "
This is {T&A}Postulio
I'm just emailing you to tell you that
you have been Accepted into the {T&A} clan.
There is only 1 thing left to do,
Click on the Link and Fill out the Information!
<a href=\"http://t-and-a.host22.com/form/tmp/persistent/T&A%2520Signup/form.html">{T&A} Registration</a>";
Now go Introduce your self on the forums, and play a game or two,
but most of all have fun!
");
include("confirm.html");
?>
The default format of a mail() message is plain text. You can not create a clickable link in plain text. You must send the message as html.
See Example 3 on this page:
http://www.w3schools.com/PHP/func_mail_mail.asp