Forum Moderators: coopster
Here is the form:
<form action="email.php" id="Contact Us" name="Contact Us" enctype="text/plain" title="Contact Us" method="post">
Name:<input type="text" name="Name" /><br />
Email:<input type="text" name="Email" /><br />
<textarea cols="20" rows="5" name="Info"></textarea><br />
<input type="submit" name="Send" value="Send" /><input type="reset" name="Clear" value="Clear" />
</form>
And the mail() code is:
mail("email@domain.com", "Subject line", "$Name just
used the form.\n\n $Info", "From: $Email");
Can anyone see the reason why it wouldnt send the email out? Even if it wasnt receiving the varables from the form it should send it with out the varables no?
I am not receiving any kind of errors when going to email.php its parsing out the rest of the page just not sending the email.
Did you try talking to the MTA as explained here [webmasterworld.com]?
Andreas
If there is one there, the location of your logs depends on your configuration, but is likely in /var/log/<someplace obvious>. Mine is in /var/log/mail.log and /var/log/mail.err.
If you didn't know what was meant by the acronym MTA until it started getting thown around in this thread, option 'a' is probably not your best choice. Find out from your ISP or hosting provider where there is an SMTP server that will relay for the web server, and put that server's name in place of localhost for PHP to use as a mail server.