Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

AwadGorg's avatar

How to send mail using zoho laravel mailable

Hello, I want to send mail using Zoho instead of mailgun and mailtrap is it possible now this are my .env setting looks like but it's not working as it should return an error

MAIL_DRIVER=smtp
MAIL_HOST=smtp.zoho.com
MAIL_PORT=465
MAIL_ENCRYPTION=SSL

and this is the error am getting

Swift_TransportException
Expected response code 250 but got code "530", with message "530 5.5.1 Authentication Required. "
0 likes
6 replies
matth's avatar

It looks like you just need to set your Zoho credentials in your .env file with

MAIL_USERNAME=
MAIL_PASSWORD=
1 like
clickweb's avatar

I got the same error did you find any solutions

MahmoudMonem's avatar

Hello Guys this is a late reply, but if you still have issues with that [ especially Authentication Errors like 530-535 etc ] try the following :

1- Generate a security password instead of your email password

to do that log in to your email at zoho and from the security tab on the left go to > App Passwords and check for > Application-Specific Passwords .. Generate a new password and copy it and place this in the MAIL_PASSWORD field on your .env file.

MAIL_USERNAME= 
MAIL_PASSWORD= // 

2- Make sure you changed these 2 lines in the config > mail.php file instead of example bla bla

   'from' => [
        'address' => env('MAIL_FROM_ADDRESS', 'YOUR EMAIL'),
        'name' => env('MAIL_FROM_NAME', 'YOUR APP NAME'), // instead of Example 
    ],

Clear your cache ~~~ php artisan cache:clear


and you should be good to go.
1 like
ronit212's avatar

Follow these points:

  1. Update .env file with Zoho SMTP settings (or any SMTP provider like SendGrid, Mailgun, Amazon SES, etc.):

    MAIL_MAILER=smtp
    MAIL_HOST=smtp.zoho.com
    MAIL_PORT=465
    [email protected]
    MAIL_PASSWORD=your-zoho-email-password
    MAIL_ENCRYPTION=ssl
    
  2. Enable Less Secure Apps or create an app-specific password if 2FA is on.

  3. Clear Cache:

    php artisan config:cache
    php artisan cache:clear
    

After updating settings and clearing the cache, Zoho (or your chosen SMTP provider like SMTPmart, Mailgun, Amazon SES, etc.) should work with Laravel.

snowjohn's avatar

✅ Zoho SMTP in Laravel (For SMTPwire, WarmupSMTP, DedicatedSMTPServer)

.env Settings:

env Copy Edit MAIL_HOST=smtp.zoho.in
MAIL_PORT=587
MAIL_ENCRYPTION=tls
Create Mailable: php artisan make:mail TestMail

Send: Mail::to('[email protected]')->send(new TestMail());

Please or to participate in this conversation.