Skip to main content

Posts

Showing posts with the label sendmail

Send mail from localhost using phpmailer

 How to Send mail from localhost using phpmailer   To send mail from your localhost or live server you can use phpmailer class. phpmailer class sends mail using smtp from both local and live server .using phpmailer you can also send html. so these are the steps to send a mail from localhost using phpmailer. Step 1 First download phpmailer class from here . and after download unzip and extract it into your root directory ex(htdocs/yourprojectfolder/phpmailer/). Step 2 then create a form in your html to send mail    <form action="" method="post" onsubmit="return sendnewsletter()">                                                       <div class="form-body">      ...