|Asif Bacchus 6135de4e5e||7 months ago|
|.vscode||7 months ago|
|php||7 months ago|
|.gitattributes||7 months ago|
|.gitignore||7 months ago|
|LICENSE||7 months ago|
|README.md||7 months ago|
|config.php||7 months ago|
|index.php||7 months ago|
|styles.css||7 months ago|
Simple drop-in test page and script with no dependancies (outside the files in this repo) to determine if PHPMailer is working, if your ISP/host is blocking ports or if your mailserver doesn't like something you're doing.
This script requires NO complex configuration or programming experience. Just provide your SMTP connection information, choose some combination of settings on the test page and read the formatted diagnostic logs to see what's going on.
This can be a welcome alternative when PHPMailer has been integrated into a complex piece of software like an e-commerce platform. Instead of fishing through thousands of lines of code to enable debugging output, you can use this simple test page to see the exact error(s) reported by your mail server.
The only file you need to alter is config.php. Simply provide the information requested by the clearly named variables.
|timeout||Time in seconds before terminating the SMTP connection attempt. Defaults to 15 seconds.|
|hostname||Address of your SMTP server. Example: mail.server.com|
|username||Username of account authorized to connect to the SMTP server.|
|password||Password of account authorized to connect to the SMTP server.|
The test page provided has NO safeguards against being used for spamming or other forms of abuse against a mail server or other users. Therefore, only keep this page installed/accessible for as long as you need to generate debug logs then delete/disable the test-page!
I hope you find a use for this script and it helps you solve any problems you're experiencing using PHPMailer. I am NOT affiliated with PHPMailer, I just cobbled this together as a quick way to test unfamiliar webhosts and confirm my configurations are correct.
If you have any suggestions, feature-requests or find any bugs, please submit an issue!