Changes to be made in Xampp/Wamp/Lamp Server to use PHP MAILER CLASS

Hiiiiii, There are some changes need to be made in the php.ini of your Xampp/Wamp/Lamp  Server to use PHP MAILER CLASS to send mails from your LOCALHOST. PHP mailer class allows you to send mails from your local machine. To send mails ,PHp mailer class requires some extensions like soap, ssl, sockets but these are commented in php.ini file so,we just have to uncomment those extensions.

 

PHP mailer class

 

 

To see code……  CLICK HERE

Using PHP Mailer Class to send mails from Localhost (Without making you website Live)

Hiiiiii, We all know that its common practice to send mails in our PHP website and you can perform this mail sending task by PHP  mail() function , but the problem with this function is that it works only when you site is live and you have put your website on some web server. But what when you have to test mail sending your localhost in your local machine at the time of developing. You can solve this problem by using PHP mailer class in your website to send mails from your local host .

To use PHP mailer class in your code , you have to made some changes in php.in to make PHP mailer class work and to see the changes, CLICK HERE .

 

PHP mailer class

 

 

 

To see code……  CLICK HERE

Sending mail with PHP mail() Function

Hiiiiiii, we all at sometimes need a mail sending functionality in our PHP code . For this PHP community has given a very useful function to send a mail within your php code. This mail sending function name is mail() function and this function is very easy to use with no extra unusual parameters.So, in this tutorial , I’ll be giving tutorial of how to use mail function.

PHP mail() Function

 

 

To get code……  CLICK HERE

HTML Form mail sending with HTML structure and CSS

Hii, we all know that sending an email form HTML form is very easy but what if we want to send some CSS and HTML Design (like table structure) in the mail . So , in this post I will be explaining how to send a mail with custom CSS and HTML.

CSS and HTML can be added with mail by two methods :

–> By PHP mail() function , and

–> By  Form mail method.

Kindly note that both of the above mentioned methods will work if your site  is live and will not work if your site is on your local server.

Here in this post  I’ll be explaining HTML mails with PHP mail() function.

Continue reading