| Server IP : 138.197.176.125 / Your IP : 216.73.217.122 Web Server : Apache/2.4.41 (Ubuntu) System : Linux SuiteCRM-8 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.19 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/crest/ |
Upload File : |
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
include_once 'modules/Emails/class.phpmailer.php';
$mail = new PHPMailer();
$mail->isSMTP();
$mail->SMTPDebug = 2;
$mail->Host = 'smtp.gmail.com';
$mail->SMTPAuth = true;
$mail->Username = 'info@noy-eliyahu.com';
// App password without spaces
$mail->Password = 'cknvbgqfogckgqjp';
$mail->SMTPSecure = 'tls';
$mail->Port = 587;
$mail->From = 'info@noy-eliyahu.com';
$mail->FromName = 'SMTP Test';
$mail->addAddress('ghanshyam.variance@gmail.com');
$mail->Subject = 'SMTP Test';
$mail->Body = 'SMTP Working Successfully';
if (!$mail->send()) {
echo 'Mailer Error: ' . $mail->ErrorInfo;
} else {
echo 'Mail Sent Successfully';
}