How To Setup Zoho SMTP Server In PHP Laravel?

You know that Laravel provides several mail drivers like SMTP, mail, sendmail, mailgun, mandrill, etc. Did you know that we can also send mail using zoho smtp server in laravel 6, laravel 7, laravel 8 and laravel 9 versions? In this example, I will show you how to send email in Laravel using zoho smtp server and setup zoho smtp server.

Laravel gives us a very simple configuration for mail sending with many drivers. So you can simply set up Zoho server details. We have to just set up detail for the host, post, driver, and encryption. You have to follow this link for mail sending, You have to just change, the .env file. First, just follow this link.

.env

MAIL_DRIVER=smtp
MAIL_HOST=smtp.zoho.com
MAIL_PORT=465
MAIL_USERNAME=test@zoho.com
MAIL_PASSWORD=123456
MAIL_ENCRYPTION=ssl

 

Read also: Laravel 9 Rest API JWT Authentication Tutorial

 

Hope it can help you.

 

#laravel