use PHPMailer\PHPMailer\PHPMailer; use PHPMailer\PHPMailer\Exception; require_once __DIR__ . '/vendor/autoload.php'; function sendEmail($to, $subject, $body) { $mail = new PHPMailer(true); try { // Server settings $mail->isSMTP(); $mail->Host = 'mail.wrectify.com.ng'; $mail->SMTPAuth = true; $mail->Username = 'info@wrectify.com.ng'; $mail->Password = 'YOUR_SMTP_PASSWORD_HERE'; // <-- IMPORTANT $mail->SMTPSecure = PHPMailer::ENCRYPTION_SMTPS; $mail->Port = 465; // Sender $mail->setFrom('info@wrectify.com.ng', 'Wrectify'); $mail->addReplyTo('info@wrectify.com.ng', 'Wrectify'); // Recipient $mail->addAddress($to); // Content $mail->isHTML(true); $mail->Subject = $subject; $mail->Body = $body; return $mail->send(); } catch (Exception $e) { error_log("Mail Error: " . $mail->ErrorInfo); return false; } } Forgot Password — Wrectify
Forgot Password
Wrectify

Enter your email address and we'll send you a link to reset your password.

Back to Login