Laravel SMTP Email Failed to authenticate

Laravel SMTP Email Failed to authenticate

0

I am using Zoho SMTP Configuration

DEFAULT_MAIL="gmail"
MAIL_MAILER=smtp
MAIL_HOST=smtp.zoho.com
MAIL_PORT=587
MAIL_USERNAME=ses@imksa.com
MAIL_PASSWORD=mina
MAIL_ENCRYPTION=ssl
MAIL_FROM_NAME=Test Sales

when I give space in MAIL_FROM_NAME as "Test Sales" without quotes website goes down but mail is send successfully

I tried with quotes also

DEFAULT_MAIL="gmail"
MAIL_MAILER=smtp
MAIL_HOST=smtp.zoho.com
MAIL_PORT=587
MAIL_USERNAME=ses@imksa.com
MAIL_PASSWORD=mina
MAIL_ENCRYPTION=ssl
MAIL_FROM_NAME="Test Sales"

I get below error message

Connection could not be established with host smtp.zoho.com :stream_socket_client(): unable to connect to ssl://smtp.zoho.com:587 (Connection refused)

In zoho mail configuration they have set FirstName=Test and LastName=Sales

Mails are not working only because of MAIL_FROM_NAME.

Can anybody suggest me solution