How to send mail in PHP using SMTP (gmail) on infinityfree.net ?


Sending Mail using SMTP on infinityfree.net

If you host your project and you can see mail is sent but not receive because there is a different method to use SMTP mail on infinityfree.net but you don't take tension because this problem also occurs with me then I am finding this solution and also I am sharing this solution with you.

Solution -: 

  • Step 1 -: First Download this file 
  • Step 2 -: Then extract this downloaded file and open it into a text editor like sublime or notepad++.
  • Step 3 -: After that edit config.php file according to your credentials means your email and password all the instruction is available in this file with a comment then you can easily edit this file.
  • Step 4 -: After config.php then open index.php file then edit this file also according to with your credentials and write your own logic means how to send mail (mail is coming from database or session or other logic) and all the instruction is available in this file so, you can easily edit this according to you.
  • Step 5 -: Then after all this, upload this file on infinityfree.net and run this file hurray, your mail is now sent.
  • Note -: This file is not run on the localhost.


No comments