PHPMailer is an advanced email PHP framework for use on PHP enabled
web servers. These instructions will guide you through setting up PHPMailer from CodeWorxTech
to use AuthSMTP as an authenticated SMTP server.
IMPORTANT: These instructions are a basic guide to explain the changes
needed to the PHPMailer configuration files to use AuthSMTP as an
authenticated SMTP server. They are not a guide to a complete or secure setup of PHPMailer, for
further instructions on using and securing PHPMailer please see their
website - PHPMailer.
These instructions are only for PHPMailer -
for other email programs or scripting languages please see
How To Setup AuthSMTP or contact us.
Step 1
Download the latest version of PHPMailer from CodeWorxTech
and extract the files to the desired location.
Copy the following files from the extracted ZIP fie to the desired directory on your web
server / space:
class.phpmailer.php class.smtp.php
Step 2
Create a file called authsmtp-test.php containing only the following
code:
Change the following lines:
- 'USERNAME' to your AuthSMTP username
- 'PASSWORD' to your AuthSMTP password
- 'From Address' to your email address
- 'From Name' to your name or company name
- 'To Address' to the email address you wish to send a test email to
- 'Reply-To Address' to the same as your From Address
Save and upload your authsmtp-test.php file to the same
directory as the two PHPMailer files.
Open a web browser and view the uploaded authsmtp-test.php file
on the Internet.
You should see a message saying "Message has been sent".
This means that AuthSMTP can be used from your web server and you can continue to
integrate this into your form / application.
We recommend that when you do, you store the username and
password variable definitions in a separate PHP file outside your
public web directory and reference back to it. Storing them in a
public PHP file is a potential security risk.
Troubleshooting
Try one of the alternative ports - 23, 26, 2525.
Check the username and password that you have entered are
correct.
Check with your Network Administrator or Hosting company that
external access on one of the ports is possible.
Check the permissions on the files you have uploaded.
Check that you have validated the 'From Address' with AuthSMTP,
you can check or start the validation process by logging into the
Control Panel.
Support
If you believe there is a problem with your AuthSMTP account please login to the Control Panel and check the following:
- You are using the correct username and password, it is possible to set
separate passwords for logging into the control panel and for sending email.
- That your account hasn't expired.
- See if there is any errors being logged against your account such as
unauthorised emails addresses etc.
For further support please contact either your web hosting company or check the support resources for PHPMailer.