Hi Team
I need some help with these settings below, want to use them from my email sending.
PHP
// Set the SMTP host name
$mail->Host = 'smtp.gmail.com';
// Set the SMTP port number
$mail->Port = 587;
// Set the encryption system to use - ssl (deprecated) or tls
$mail->SMTPSecure = 'tls';
Vishal JoshiRank #377 · 6.7K reputationPosted Mar 13, 2023, 1:15 AM EDT
Hello
You can try the below sample code settings to send emails with an encryption system by using SSL.
$mail->Host = 'mail.example.com'; // Specify main and backup SMTP servers $mail->SMTPAuth = true; // Enable SMTP authentication $mail->Username = '[email protected]'; // SMTP username $mail->Password = '*****'; // SMTP password $mail->SMTPSecure = 'tls'; // Enable TLS encryption, `ssl` also accepted $mail->Port = 25; // TCP port to connect toThanks