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

what is Blogger

what is Blogger, what is Blogger short info, Blogger hindi information,  Blogger.com एक फ्री Blog Publishing Platform है. जिसकी सहायता से Free Blog बनाकर Texts, Images, Videos आदि आसानी से शेयर की जा सकती है. और दुनिया को अपने लेखन कौशल से अवगत कराया जा सकता है. Blogger की गिनती Content Management Systems में होती है. क्योंकि यह Content को Yearly, Monthly, Weekly, Daily, Catigarically, Labels आदि के द्वारा Manage करता है. और ये सभी Entry पाठकों के लिए उपलब्ध रहती है. Google Blogger Kya Hai in Hindi Blogger पर जो ब्लॉग बनाया जाता है. वह blogspot.com का Sub-Domain होता है. जो Google Server पर Hosted रहता है. Blogger Users गूगल सर्वर को Access नही कर पाते है. लेकिन गूगल अकाउंट से उन्हे Blogger Dashboard पर अनुमति मिल जाती है. इसलिए वे अपना Blog Manage आसानी से कर सकते. Blogspot.com के अलावा Users को Country Specifit Domain Name भी उपलब्ध करवाया जाता है. मिसाल के तौर पर एक Indian Blogger Users अगर अपना ब्लॉग बनाता है तो वह blogspot.com के स्थान पर blogspot.in का चुनाव कर

how to add a youtube video to your website html

embed youtube video in html without iframe,html embed youtube video,how to insert a video in html from computer,iframe video autoplay in html,embed video html,youtube embed code generator,youtube refused to connect html,how to insert mp4 video in html, Use following steps 1. Create basic html page 2. Login to your Google account 3. Visit  www.youtube.com 4. Search video you want to add in your website 5. Select video  6. Click on share button at bottom  you can see share option   7. Click on embed as shown  8. Copy code and paste in html page save and run html page  embed youtube video in html without iframe,html embed youtube video,how to insert a video in html from computer,iframe video autoplay in html,embed video html,youtube embed code generator,youtube refused to connect html,how to insert mp4 video in html,