SMTP Configuration For PHPMailer
SMTP Configuration For PHPMailer
This guide explains how to configure and set up SMTP details in the following files:
1. admin/manage-cargo.php
2. users/payment-gateway.php
Prerequisites
Instructions
o Replace the placeholder values in the following code snippet with your Gmail email
ID and passkey:
o // Sender Information
For security, it's recommended to use an App Passkey instead of your Gmail password. To generate
an App Passkey:
Important Notes
Ensure the files are not publicly accessible to prevent unauthorized access.
If testing on localhost, make sure to allow less secure apps in your Gmail settings (not
recommended for production).
Ensure the server can connect to Gmail's SMTP (smtp.gmail.com) and port 587 is open.
Troubleshooting