Professional Documents
Culture Documents
Configure Email Di Hosting
Configure Email Di Hosting
There can be multiple reasons for that. If you are running this on a live host, you
have to use the necessary settings in your host service. Because the settings of
the host services are different from one to another. Read this.
If you get these errors when you try on a live host. This might be helpful.
In your host > go to cpanel > Email Accounts > Webmail > Configure Mail Client
$mail->isSMTP();
$mail->Host = 'yourdomain.com'; // Can be mail.yourdomain.com
$mail->SMTPAuth = true;
$mail->Username = 'webmail@domain.com'; // Your host email account which you want
to use as SMTP server
$mail->Password = 'host email password'; // host email account password
$mail->SMTPSecure = 'ssl'; // Can be tls
$mail->Port = 465; // Can be 587