<?
/******************************************************
**
** Flash Mx PHP Mailer
**
** By - David Khundiashvili
*******************************************************/
/*******************************************************
Enter your site details below!
*******************************************************/
// Enter your contact email address here
$adminaddress = "Your_Mail_Addrwss";
// Enter the address of your website here include http://www.
$siteaddress ="http://www.Your_web_site_address";
// Enter your company name or site name here
$sitename = "Company Name";
/*******************************************************
No need to change anything below ...
*******************************************************/
$date = date("m/d/Y H:i:s");
if ($REMOTE_ADDR == "") $ip = "no ip";
else $ip = getHostByAddr($REMOTE_ADDR);
if ($action != ""):
mail("$adminaddress","Info Request",
"A visitor at $sitename has left the following information\n
First Name: $fname
Last Name: $lname
Email: $email
Telephone: $telno\n
The visitor commented:
------------------------------
$comments
Logged Info :
------------------------------
Using: $HTTP_USER_AGENT
Hostname: $ip
IP address: $REMOTE_ADDR
Date/Time: $date","FROM:$adminaddress");
mail("$email","Thank You for visiting $sitename",
"Hi $fname,\n
Thank you for your interest in $sitename!\n
Cheers,
$sitename
$siteaddress","FROM:$adminaddress");
$sendresult = "Thank you for visiting <a href = \"$siteaddress\" target = \"_blank\"><u>$sitename</u></a>. You will receive a confirmation email shortly. ";
$send_answer = "answer=";
$send_answer .= rawurlencode($sendresult);
echo "$send_answer";
endif;
?>