![]() This is where you insert the sender’s email address. $mail->Username = your email address here. This line is used to turn on SMTP authentication. This is where the SMTP server address should be specified. The SMTPDebug command lets you detect if something goes wrong with the SMTP connection. The code here tells PHPMailer class to use the custom SMTP configuration defined in the script instead of the local mail server. This line includes various libraries that PHPMailer needs. The line above imports the PHPMailer class to the global namespace. To understand how PHPMailer works, let’s review each script component above.
0 Comments
Leave a Reply. |