Get 10% discount for your first web hosting purchase. Promotion code: WELCOMEHOSTIMUL

How to install phpMailer in a shared hosting environment?

To install the PHPMailer download its source files and include the required files manually:

1. On the PHPMailer homepage download the ZIP file with the source code;

2. On the right click on the “Clone or download”;

3. Select the “Download ZIP” option;

4. Unzip the package placing them to the directory in which you want to save the source files.

Then add the necessary classes in your PHP script.

It is important to include the main PHPMailer classes; the Exception class (to handle errors) and the SMTP class, in case if you’ll connect to an SMTP server to deliver mail.

You need also to set the namespace.

This is how your PHP script will look like, if your source code directory is “C:PHPMailer”:


				
We're in Beta! 🚧

Our new website is currently in beta mode. Some features may not work perfectly yet, and there might be a few minor imperfections.
All small issues will be polished and fixed within the next 48 hours.
Thanks for your patience and support! 💜