IF your Asking for Formailer Code Sure. Below
<?
/*
// ------------- CONFIGURABLE SECTION ------------------------
*/
// $mailto - set to the email address you want the form
// sent to, eg
//$mailto = "youremailaddress@example.com;info@morningstarseniorliving.com"
//
$MailTo = $_POST['MailTo'] ; //Mailing Address to Send E-mail To. Qarbontapice@comcast.net
$ReplyTo = $_POST['ReplyTo'] ; //Mailing Address To ReplyTo.
$Bcc = $_POST['Bcc'] ; //Mail Copys to Other Boss's/Managers in Business. Sliently!
$Recipient = $_POST['Recipient'] ; //Recipient to Person.
//
//$subject - set to the Subject line of the email, eg
//$subject = "!!!-Form Information Request-!!!" ;
$Subject = $_POST['Subject'] ;
//the pages to be displayed, eg
//thankyouurl=Once Form Submited this Page will Show.
//$thankyouurl = "http://www.example.com/thankyou.html" ;
$ThankYou_url = $_POST['ThankYou_url'] ;
$uself = 1;
// -------------------- END OF CONFIGURABLE SECTION ---------------
$headersep = (!isset( $uself ) || ($uself == 0)) ? "\r\n" : "\n" ;
//
//Personal Information:
$First_Name = $_POST['First_Name'] ;
$Last_Name = $_POST['Last_Name'] ;
$Email = $_POST['Email'] ;
$Company_Name = $_POST['Company_Name'] ;
$Address = $_POST['Address'] ;
$City = $_POST['City'] ;
$State = $_POST['State'] ;
$ZipCode = $_POST['ZipCode'] ;
$PhoneNumber = $_POST['PhoneNumber'] ;
$Question = $_POST['Question'] ;
//
$IP = getenv("REMOTE_ADDR");
$Browser = getenv ("HTTP_USER_AGENT");
$Referrer = getenv( "HTTP_REFERER" );
//Message ID Number Generator:
$Messageid = md5(uniqid(rand(),1));
$Messageid = substr(md5(time()),0,10);
$Time = gmdate("h:i:s");
$Date = gmdate("F j, Y");
/*
z The day of the year (starting from 0) 0 through 365
Month --- ---
F A full textual representation of a month, such as January or March January through December
m Numeric representation of a month, with leading zeros 01 through 12
M A short textual representation of a month, three letters Jan through Dec
n Numeric representation of a month, without leading zeros 1 through 12
t Number of days in the given month 28 through 31
Day --- ---
D A textual representation of a day, three letters Mon through Sun
l (lowercase 'L') A full textual representation of the day of the week Sunday through Saturday
Day of Month --- ---
d Day of the month, 2 digits with leading zeros 01 to 31
j Day of the month without leading zeros 1 to 31
Year --- ---
L Whether it's a leap year 1 if it is a leap year, 0 otherwise.
o ISO-8601 year number. This has the same value as Y, except that if the ISO week number (W) belongs to the previous or next year, that year is used instead. (added in PHP 5.1.0) Examples: 1999 or 2003
Y A full numeric representation of a year, 4 digits Examples: 1999 or 2003
y A two digit representation of a year Examples: 99 or 03
Time --- ---
a Lowercase Ante meridiem and Post meridiem am or pm
A Uppercase Ante meridiem and Post meridiem AM or PM
B Swatch Internet time 000 through 999
g 12-hour format of an hour without leading zeros 1 through 12
G 24-hour format of an hour without leading zeros 0 through 23
h 12-hour format of an hour with leading zeros 01 through 12
H 24-hour format of an hour with leading zeros 00 through 23
i Minutes with leading zeros 00 to 59
s Seconds, with leading zeros 00 through 59
u Milliseconds (added in PHP 5.2.2) Example: 54321
Timezone --- ---
e Timezone identifier (added in PHP 5.1.0) Examples: UTC, GMT, Atlantic/Azores
I (capital i) Whether or not the date is in daylight saving time 1 if Daylight Saving Time, 0 otherwise.
O Difference to Greenwich time (GMT) in hours Example: +0200
P Difference to Greenwich time (GMT) with colon between hours and minutes (added in PHP 5.1.3) Example: +02:00
T Timezone abbreviation Examples: EST, MDT ...
Z Timezone offset in seconds. The offset for timezones west of UTC is always negative, and for those east of UTC is always positive. -43200 through 50400
*/
//__________________________________________________________
#echo 'Date Short: '. date("M d Y") ."\r\n <br />";
#echo 'Date Numbers: '. date('m-d-y') ."\r\n <br />";
#echo 'Time Now: '. date("h:i:s") ."\r\n <br />";
#echo 'Today Date: '. date("F j, Y") ."\r\n <br />";
//__________________________________________________________
//print "<pre>";
//print_r($_POST); //Test whats inside $Page, $_POST, $_SESSION
//print "</pre>";
// In case any of our lines are larger than 70 characters, we should use wordwrap()
#$message = wordwrap($message, 70);
#$message = str_replace("\n.", "\n..", $message); // Some Windows Servers Need This Fix
$Company_email = ('@Information-Request.com');
$Compant_Name = ('FusionWebDesigner');
$Headers = 'From: ' . $Name . $Company_email . ' <' . $Name . $Company_email . '>' . "\r\n";
$Headers .= 'Reply-To: ' . $Compant_Name . ' <' . $ReplyTo . '>' . "\r\n";
$Headers .= 'Return-Path: ' . $Compant_Name . ' <' . $ReplyTo . '>' . "\r\n";
$Headers .= 'Message-ID: <' . time() . 'tmoml@' . $_SERVER['SERVER_NAME'] . "\r\n";
$Headers .= 'X-Sender-IP: ' . $_SERVER['REMOTE_ADDR'] . "\r\n";
$Headers .= 'X-Mailer: PHP v' . phpversion() . "\r\n";
$Headers .= 'Date: ' .date('D, d M Y H:i:s') . " UT\n";
$Headers .= 'Content-type: text/html; charset=iso-8859-1\n';
$Headers .= 'X-Priority: 1' . "\r\n"; //1=Low 2=Medium 3=High 4=Urgent
$HeadersX = 'From: ' . $Name . ' <' . $Name . $Company_email . '>' . "\r\n";
$HeadersX .= 'Reply-To: ' . $Compant_Name . ' <' . $ReplyTo . '>' . "\r\n";
$HeadersX .= 'Return-Path: ' . $Compant_Name . ' <' . $ReplyTo . '>' . "\r\n";
$HeadersX .= 'Message-ID: <' . time() . 'tmoml@' . $_SERVER['SERVER_NAME'] . "\r\n";
$HeadersX .= 'X-Sender-IP: ' . $_SERVER['REMOTE_ADDR'] . "\r\n";
$HeadersX .= 'X-Mailer: PHP v' . phpversion() . "\r\n";
$HeadersX .= 'Date: ' .date('D, d M Y H:i:s') . " UT\n";
$HeadersX .= 'Content-type: text/html; charset=iso-8859-1\n';
$HeadersX .= 'X-Priority: 1' . "\r\n"; //1=Low 2=Medium 3=High 4=Urgent
if (isset($Recipient)) //isset - Determine whether a variable is set. Ex $Cc = "0";
{
if (!empty($Recipient) ) //!empty - Determine whether $Cc is Empty or Not. Ex !empty = Not Empty
$Headers .= 'Cc: ' . $Recipient . "\r\n";
}
if (isset($Bcc)) //isset - Determine whether a variable is set. Ex $Cc = "0";
{
if (!empty($Bcc) ) //empty - Determine whether $Bcc is Empty or Not. Ex !empty = Not Empty
$Headers .= 'BCC: ' . $Bcc . "\r\n";
}
$Message ="This is Message to Send in the Email.";
mail($MailTo, $Subject, $Message, $Headers);
header( "Location: $ThankYou_url" );
exit ;
?>