mail->AddReplyTo("firstname.lastname@example.org","First Last"); $ mail->Subject = "PHPMailer Test Subject via smtp, basic with authentication"; $ mail->AltBody = "To view the message...
UPDATED. You could try changing $mail->SMTP to: $mail->SMTPSecure = 'tls'; It's worth noting that some SMTP servers block connections.
I've used PHPMailer on several projects but now I'm stuck. It gives me the error: SMTP Error: Could not connect to SMTP host. I've tried sending email from Thunderbird and it works !
CodeWorxTech PHP Mailer 2.x - SMTP Setup Guide. Are you using the latest version of PHPMailer?
PHPMailer is a full featured email transfer class for PHP that exposes a much greater range of features than the
Copy path. PHPMailer/class.smtp.php.
} } Both examples are very simple and demonstrate only how-to send e-mail messages using PHPmailer with the SMTP server provided by GMail.
PHPMailer RFC821 SMTP email transport class. Implements RFC 821 SMTP commands and provides some utility methods for sending mail to an SMTP server.
Whether you host your own separate server or use a third-party service, Simple Mail Transfer Protocol (SMTP) is the easiest
PHPMailer can use a non-local mail server (SMTP) if you have authentication.