E-mail link not working

Hello all,

I have finally got my website up and running but I find that my e-mail link is not working. Could one of you kind people here help me out to see what i have done wrong.

The website address is www.totosprachservice.com

Help is much appreciated


I get the error

Not Found

The requested URL /send.php was not found on this server.

Me too but what do I need to do to correct it

Thanks for replying!


Ok I believe that I need to create a php file and upload it to my host server that links the contact form to my domain postbox. Can anyone help me with the code here or give me an example.

Your help would be greatly appreciated.


are you wanting to create something such as clicking on totraining@aol.com and that launches their mail client?
If so change:

<a href="contact.html" rel="#overlay"><b> e.mail: totraining@aol.com</b><br />


<a href="mailto:totraining@aol.com" rel="#overlay"><b> e.mail: totraining@aol.com</b><br /></a>

Thank you for your reply. I was actually hoping to use the contact form, I have already got. It appears I need to create a couple of PHP files. Is that correct, as when I click on send-it comes up with the message. send.php not found on this server.

Yes, you must write your own data handling script to send the email from the form.
google on email using php and try any of the 84 million examples. (It’s quite easy once you’ve done it once.) Remember to check that all the required fields are completed. You can check this using javascript and php. JS has the advantage that the check takes place before the user leaves the page. But include php validation as well, in case someone has js disabled.

Thank you for your answer. Sorry for being dull on this but I have just managed to get my head around HTML. I have already designed the contact forms on the website using normal code. What php file do I need to create now. Is it only an send.php code file and what further linking do I need to do on the contact form page?

I have browsed the web but can ony find php code templates with contact forms included so far.

Thanks, again!


A simple method would be to have the action attribute on your form element direct to a PHP page (which handles the script) - this will have the submit button send the data to there… as for a very simple PHP script, the following would do the trick, just make sure your form elements have an ID of email, subject, and message (for each thing - you can add more to the script and PHP file if you need them), it’s very rudimentary but it’ll do the job. :slight_smile:

$mail_To = "Support@yoursite.com"
$mail_From = $_POST['email'];
$mail_Subject = $_POST['subject'];
$mail_Body = $_POST['message'];
mail($mail_To, $mail_Subject, $mail_Body, $mail_From);
header("Location: http://www.yoursite.com/");

Thanks very much. I will give this a try

I have coded the php file and the message arrived at the recipient but it just shows contact us and the actual message content does not arrive. I am sure that I am doing something wring with the order of my code in correspondence to my form code I will post the code underneath for the php file and the form.
Any help very much appreciated as I am beginning to feel to stupid.

form method=“post” action=“sendmail.php”>
$to = “totraining@aol.com”;
$email = $_REQUEST[‘email’] ;
$headers = “From: $email”;
$subject = “Contact Us”;
$message = $_REQUEST[‘message’] ;

$sent = mail($to, $headers, $subject, $message) ;
{print “Your mail was sent successfully”; }
{print “We encountered an error sending your mail”; }

$message = " $todayis [EST] \

Attention: $attn \

Message: $notes \

From: $visitor ($visitormail)\

Additional Info : IP = $ip \

Browser Info: $httpagent \

Referral : $httpref \


This is the code for my form:

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=“http://www.w3.org/1999/xhtml”>
<meta http-equiv=“Content-Type” content=“text/html; charset=utf-8” />
<title>Contact form</title>
<link href=“css/style_inside.css” rel=“stylesheet” type=“text/css” />
<body style=“margin:0; padding:0”>
<h1 class=“contact-title”>Nachrichten senden:</h1>
<form action=“send.php” method=“post” class=“formm”>
<table align=“left”>
<tr class=“mar”>
<th class=“lable”>*Name:</th>
<td class=“input”><input name=“name” size=“40” maxlength=“40” class=“input” type=“text”></td>
<th class=“lable”>*E-mail:</th>
<td class=“input”><input name=“email” size=“40” maxlength=“40” class=“input” type=“text”></td>
<th class=“lable”>Subject:</th>
<td class=“input”><input name=“subject” size=“40” maxlength=“40” class=“input” type=“text”></td>
<th class=“lable”>*Nachricht:</th>
<td class=“input”><textarea name=“text_message” cols=“40” rows=“10” class=“input”></textarea></td>
<br />
<br />
<br />
<td align=“center”><input name=“mail_submit” type=“submit” value=“Nachricht senden”>


Well the name of the textbox for the message is text_message and you have message request pointing nowhere… $message = $_REQUEST[‘message’] ;

You should either rename text_message to message, or have the request value renamed to text_message.

Using text_message as the name of the textbox, this would work: $message = $_REQUEST[‘text_message’] ; :slight_smile: