Total Pageviews

Wednesday, July 8, 2015

Download HTML PHP Email Sending Code with Example free

Sending Emails using PHP,HTML PHP Mail Sending code download , php send email using smtp authontication ,php allows you to send emails directly from a script, php sample code example,php mail example code,php email example html,php script example command line,php email tutorial,PHP: mail - Manual,php send email with attachment, php send email script, php send email with attachment,send email using php mysql,php send email gmail,php send email with attachment example,php mail function,php send html email, php send email smtp, php send email smtp,php send mail using smtp server,php mail through smtp server, php mail function smtp settings,php smtp code send mail php script,sending mail in php using smtp authentication,download php smtp code send mail php script,dwnload php mail through smtp server, Send Email using HTML PHP, HTML PHP contact us form, HTML PHP Enquiry Form , HTML PHP Email Sending Code with Example, Download HTML PHP Email Sending Code with Example free,

In This Post I am going to explain how to create HTML Contact us page / Inquiry page  with the help of Php Script using SMTP  Server Authentication








Requirement
1. You Should have domain name and space ( Hosting Plan )register on server 
2. in your Hosting Plan you must have facility to create differnt email related to your domain and password 

lets take example suppose i have purchase a hosting plan providing email hosting and php setting with the name  

www.ahmednagarcity.in 
www.yourDomain.com
 By using Hosting CPanel you can create email and Password like 







admin@ahmednagarcity.in
similar for your domain
admin@yourDomain.com
 after creating such email and password you can access it putting  following address in address bar of your web browser   
                         webmail.yourDomain.com 
now remember this email id and password created by you. in php email script we are going to use it for SMTP authotication   

First you must know what is SMTP ? 

DEF: SMTPSMTP stands for Simple Mail Transfer Protocol. SMTP is used when email is delivered from an email client, such as Outlook Express, to an email server or when email is delivered from one email server to another. SMTP uses port 25. 







lets see Php Script To Send Mail  


//  code Started
<?php
 

 require_once "Mail.php";
 //please  confirm the exact path of Mail.php on Server

 $from = "TESTING<admin@yourDomain.com>";

//Name of the sender
$to = "TESTING <test.checkmail@gmail.com>";
//Name of the receiver multiple id with comma






  $subject = "Hi!";
//subject of your mail
  $body = "Hi,\n\nHow are you doing today.?";
 
//messge  of your mail
  $host = "mail.yourDomain.com";
 //just replace yourDomain
  $port = "25";
 //port Keep as it is 
 $username = "admin@YourDomain.com";
 $password = "Password";






  //Replace user name and password  

 $headers = array ('From' => $from,
   'To' => $to,
   'Subject' => $subject);
 $smtp = Mail::factory('smtp',
   array ('host' => $host,
     'port' => $port,
     'auth' => true,
     'username' => $username,
     'password' => $password));

 $mail = $smtp->send($to, $headers, $body);

 if (PEAR::isError($mail)) 
{
   echo("<p>" . $mail->getMessage() . "</p>");
  }
 else
 {
   echo("<p>Message successfully sent!</p>");
  }

 ?>// end of code
_________________________________________ 


Save Above script as enquiry.php by suggested changes upload to your server and test it .

..... if you Need code contact me on email .....

..... prakashsonar7@yahoo.co.in ......



 download , php send email using smtp authontication ,php allows you to send emails directly from a script, php sample code example,php mail example code,php email example html,php script example command line,php email tutorial,PHP: mail - Manual,php send email with attachment, php send email script, php send email with attachment,send email using php mysql,php send email gmail,php send email with attachment example,php mail function,php send html email, php send email smtp, php send email smtp,php send mail using smtp server,php mail through smtp server, php mail function smtp settings,php smtp code send mail php script,sending mail in php using smtp authentication,download php smtp code send mail php script,dwnload php mail through smtp server, Send Email using HTML PHP, HTML PHP contact us form, HTML PHP Enquiry Form , HTML PHP Email Sending Code with Example, Download HTML PHP Email Sending Code with Example free,

Popular Posts

Follow by Email