Hello..
My name is eric shoemaker and I am a web designer in Atlanta, Ga. I have pretty much taught myself PHP
but I can not get this php script to work correctly.....
It does send the email confirmation back to the given user but it sends as
me@localhost.com
when it should send as eric@ericshoemaker.com
here is the code. If you can help me I would be greatful.. Please email me at
eric@ericshoemaker.com
<?
/***************************************************
This script is easy to configure. Just change the variables below to
suit your environment and PHP does the rest!
http://www.scratchdisk.co.uk
****************************************************/
// Enter your email address here
$adminaddress = "eric@ericshoemaker.com";
// Enter the address of your website here
$siteaddress ="http://www.ericshoemaker.com";
// Enter your company name or site name here
$sitename = "eric shoemaker, hybrid design and development";
// Gets the date and time from your server
$date = date("m/d/Y H:i:s");
// Gets the IP Address
if ($REMOTE_ADDR == "") $ip = "no ip";
else $ip = getHostByAddr($REMOTE_ADDR);
//Process the form data!
// and send the information collected in the Flash form to Your nominated email address
IF ($action != "")
{
mail("$adminaddress","Enquiry from www.ericshoemaker.com",
"ENQUIRY FROM WEBSITE EMAIL FORM
Name: $inputName
Company: $inputCompany
Position: $inputPosition
Email: $inputEmail
Telephone: $inputTel
Message: $inputMessage
Logged Info :
Using: $HTTP_USER_AGENT
Hostname: $ip
IP address: $REMOTE_ADDR
Date/Time: $date","FROM:$adminaddress");
//This sends a confirmation to your visitor
mail("$inputEmail","Thank you for visiting $sitename","Thank you for your interest in eric shoemaker, hybrid design and development. Your email has been received and will be processed shortly.","FROM:
$adminaddress\r\nReply-to: $adminaddress");
//Confirmation is sent back to the Flash form that the process is complete
$sendresult = "Done!";
$send_answer = "answer=";
$send_answer .= rawurlencode($sendresult);
// echo "$send_answer";
}
?>