<?php
// Include the necessary PHPMailer files
require 'path/to/src/Exception.php';
require 'path/to/src/PHPMailer.php';
require 'path/to/src/SMTP.php';

// Create a new PHPMailer instance
$mail = new PHPMailer\PHPMailer\PHPMailer();

// Set up SMTP configuration
$mail->isSMTP();
$mail->Host = 'entries.sar-motorismo.com';  // SMTP server
$mail->SMTPAuth = true;
$mail->Username = 'info@entries.sar-motorismo.com'; // Your email address
$mail->Password = '6sLzkMtO6?tj'; // Your email account password
$mail->SMTPSecure = 'ssl'; // Use 'ssl' or 'tls' based on your server configuration
$mail->Port = 465; // SMTP port

// Set the email content
$mail->setFrom('info@entries.sar-motorismo.com', 'Your Name');
$mail->addAddress('recipient@example.com', 'Recipient Name'); // Set the recipient's email address
$mail->Subject = 'hi ali';
$mail->Body = 'good';

// Set the email format to HTML (optional)
$mail->isHTML(true);

// Send the email
if ($mail->send()) {
    echo "Mail sent successfully";
} else {
    echo "Mailer Error: " . $mail->ErrorInfo;
}
?>
