Skip to main content

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 from this blog

Design Marathi website Using HTML CSS

          Design Marathi website Using HTML CSS,मराठी वेबसाईट designing HTML ,step by step Marathi website, how to display Marathi content in your website, Design Marathi website step by step , Marathi website using HTML and CSS, How To Design website using different Languages  Design Marathi website Using HTML CSS, Design Marathi website Using PHP, Design Marathi website Using JSP, Design Marathi website Using ASP, Design Marathi website Using C# Dot Net, Design Marathi website Using Vb Dot Net, मराठी वेबसाईट मराठी वेबसाईट बनवन अगदी सोप आहे मी या ब्लॉग मध्ये दिलेल्या स्टेप्स वापरून तुम्ही काही क्षणात मराठी वेब पेज तयार करू शकता  Design Marathi website Using HTML CSS,मराठी वेबसाईट designing HTML ,step by step Marathi website, how to display Marathi content in your website, Design Marathi website step by step , Marathi website using HTML and CSS, How To Design website using different Languages    Design Marathi website U

Create HTML CSS javascript News Box , HTML CSS News Slider Download

Create HTML CSS javascript News Box , HTML CSS News Slider Download, HTML News Box For Your Website Free Download, java script news box For your Website, HTML CSS News Box Tutorial, HTML CSS News Box Example With Source code, HTML CSS Link Slider, HTML Slider Menu ,java script news box For your Website, HTML News box source Code example, News Slider   Here Is Example Of News Box slider for Your Website you can use it wiht PHP, ASP, ASP.NET, JSP,HTML 1.HTML Code  Save this code as index.HTML <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title itemprop="name"></TITLE> <meta name="description" itemprop="description" content=""/> <META NAME="Keywords" CONTENT=""/>  <meta name=&quo

rowspan and colspan in html table

html table rowspan colspan tutoral, rowspan and colspan in html table, html table , html table video tutorial , html table with colspan and rowspan  html table rowspan colspan tutoral, rowspan and colspan in html table, html table , html table video tutorial , html table with colspan and rowspan  saving details Month Savings Savings for holiday! January $100 $50 February $80 click here to download html table colspan rowspan tutorial