banner
May 15, 2013
56 Views
0 0

Email sending in PHP

Written by
banner

This below code is used for Email sending in PHP. In this code we are sending a simple email with HTML content.
This below code is used for Email sending. In this code we are sending a simple email with HTML content.

 
$to = "abcd@gmail.com";		
	$header .= "MIME-Version: 1.0\r\n";
	$header .= "Content-Type: text/html; charset=\"utf-8\"\r\n";
	$header .= "Content-Transfer-Encoding: 7bit\r\n";
	$header .= "From: ". $name . " <" . "Emails Demo"  . ">\r\n"; 		
	$subject = "Shoplife Insurance - Free Quote Mail";		
	$content = '';
	$content.= '';		
	$content.= '';	
	$content.= '';	
	$content.= '';		
	$content.= '
A e- mail is received.
Details is given below:
   
Name :'. $contactname.'
Email :'.$phone_no.'
Phone No :'.$messages.'
Message :'.$email.'
'; @mail($to,$subject,$content,$header);

This is well tested and i used it many times.

Share this:
Article Tags:
· ·
Article Categories:
PHP
banner

Hi guys, This is the place where developers are sharing there thoughts....

Comments to Email sending in PHP

  • Really nice … helped me a lot .. 🙂

    Aryak August 3, 2013 11:01 pm Reply

Leave a Comment

Your email address will not be published. Required fields are marked *

Result of *

Social Widgets powered by AB-WebLog.com.