Posts

Showing posts with the label PHPMailer

phpmailer not working in online server

  Two things we have to do for sending mail using GMAIL in online : -  1)Allow less secure app  2)DisplayUnlockCaptcha https://accounts.google.com/b/0/displayunlockcaptcha replace 0 with your logged in user number

How to send email with attachment From Local/Online Server using PHPMailer in Hindi | Updated 2020

Image
  PHPMailer is mostly used PHP library for sending the email . This library is very fast and you will get email direct in your inbox whereas when we use php mail function then it send email but email will go inside the SPAM .  Email sending process using PHPMailer : -  Step 1 : Download  PHPMailer Library From https://github.com/PHPMailer/PHPMailer      . Step 2 : Extract Zip File and copy 3 Files from extracted folder named PHPMailer.php , SMTP.php and Exception.PHP . Keep these files in your project and include by using built in function "require" of PHP . Strep 3 : Here we are using GMAIL SMTP but you can use according to you . Set smtp detail and then set username (email id) and password of your account . Note : Here we are not using composer for this so we don't need to include autoload.php file . If you need any help then you can reach us at dular88@gmail.com . For more detail visit at https://github.com/PHPMailer/PHPMailer Demo : ht...