"send email using phpmailer" Code Answer

2

you're using smtp authentication but you're not actually defining any host, which is required:

ex: $mail->host = "smtp.example.com";

put that changed with your domain after $mail->issmtp();.

also, optionally, you can provide a username and password like this, if you need:

$mail->username = 'username'; $mail->password = 'password';

By Akki on August 12 2022

Answers related to “send email using phpmailer”

Only authorized users can answer the Search term. Please sign in first, or register a free account.