<?php | |
//Server settings | |
$mail->SMTPDebug = 0; // Enable verbose debug output | |
$mail->isSMTP(); // Set mailer to use SMTP | |
$mail->Host = 'YOUR_HOST_HERE'; // Specify main and backup SMTP servers | |
$mail->SMTPAuth = true; // Enable SMTP authentication | |
$mail->Username = 'YOUR_SMTP_USERNAME'; // SMTP username | |
$mail->Password = 'YOUR_SMTP_PASSWORD'; // SMTP password | |
$mail->SMTPSecure = 'tls'; // Enable TLS encryption, `ssl` also accepted | |
$mail->Port = 587; // TCP port to connect to | |
//Recipients | |
$mail->setFrom('YOUR_EMAIL_ADDRESS', 'YOUR_NAME'); //SET "FROM" EMAIL AND NAME. | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment