In this tutorial we will see how to send email using php from godaddy servers

  • download PHPMailer from here
  • php script as below

  • go to you cpanel and upload the file and try to execute the script from browser and see you inbox for email
  • before executing change the recipients email to valid email address and valid from email.

Happy programming


Sending Email using PHPMailer

Steps before you start

Create email.php &  copy the downloaded PHPMailer source code into htdocs or in your project directory & in your project directory which will look like below.



edit email.php file and paste below code

Save the file and try to access http://localhost:serverportnumber/email.php