| Server IP : 209.209.40.120 / Your IP : 216.73.217.112 Web Server : Microsoft-IIS/10.0 System : Windows NT NEWWWW 10.0 build 17763 (Windows Server 2019) i586 User : NEWWWW$ ( 0) PHP Version : 8.3.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /HostingSpaces/admin/toppersdrinks.co.uk/wwwroot/ |
Upload File : |
<?php
use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\Exception;
require 'vendor/autoload.php'; // Load PHPMailer
$mail = new PHPMailer(true);
try {
// SMTP Configuration
$mail->isSMTP();
$mail->SMTPDebug = 2; // Set to 3 for more details
$mail->Debugoutput = 'html';
//$mail->Host = 'smtp.example.com'; // Replace with your SMTP server
$mail->SMTPAuth = true;
//$mail->Username = 'your_email@example.com'; // Replace with your SMTP username
// $mail->Password = 'your_password'; // Replace with your SMTP password
//$mail->Host = "mail.toppersdrinks.co.uk"; // SMTP server
//$mail->Username = 'customercare@toppersdrinks.co.uk';
//$mail->Password = 'NewPass2024#';
$mail->Host = 'email-smtp.eu-north-1.amazonaws.com';
$mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS;
$mail->Port = 587;
//$mail->Host = "mail.toppersdrinks.co.uk"; // SMTP server
$mail->Username = 'AKIAQRH5EOK2UM2U57EW';
$mail->Password = 'BKzk/kcwp3j0iOiLo40MTs4A/XvapjEUbPqovfWxEDht';
// $mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS; // Use STARTTLS or disable encryption
// $mail->Port = 25; // Port 25 for SMTP (may be blocked by some ISPs)
// Email Headers
$mail->setFrom('payment@tickwaves.co.uk', 'Tick Waves');
$mail->addAddress('jackson.osahon22@gmail.com', 'Jackson Osahon');
$mail->Subject = 'Test Email';
$mail->Body = 'This is a test email sent using SMTP through port 25.';
// Send Email
if ($mail->send()) {
echo 'Email sent successfully!';
} else {
echo 'Email could not be sent.';
}
} catch (Exception $e) {
echo "Error: {$mail->ErrorInfo}";
}