My first mail form

the mail() function

Moderators: egami, macek, gesf

Post Reply
bachans
New php-forum User
New php-forum User
Posts: 67
Joined: Thu May 19, 2011 6:01 am
Location: India

Fri May 27, 2011 5:49 am

Hi,

Here I ve modified your code in php.

Code: Select all

<?php
if($_POST)
{
    $feedback_page = "contact_us.html";
    $error_page = "error_message.html";
    $thankyou_page = "thank_you.html";

    $To = "bachans@mindfiresolutions.com";
    $Email = $_POST['Email'] ;
    $Comments = $_POST['Comments'] ;
    $Name = $_POST['Name'] ;
    $Subject = $_POST['Subject'] ;
    $Header = "From: $Name <$Email>\r\n" ;
	
	$Header .= "Content-type: text/html\r\n";


   $Email = mail ($To, $Subject, $Comments, $Header);
	
}
?>
Thanks
Bachan

User avatar
webinfopedia
New php-forum User
New php-forum User
Posts: 84
Joined: Sat May 21, 2011 10:26 pm
Contact:

Sun May 29, 2011 6:55 pm

For simple PHP email function i have wrote an article. You can get idea about PHP mail function along with demo and example. read article below
http://www.webinfopedia.com/php-mail-function.html

Hope that it will help you.

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 1 guest