baalaa88's avatar

SMTP mail is not working

I have configured SMTP mailservice on my site and i have tested with PHPMailer SMTP also, Its working fine. But same credentials inside Laravel mail is not going and its not throwing error also. Could some one please help me to solve this?

My .env file contains

MAIL_DRIVER=smtp

MAIL_HOST=xxx-smtp.com

MAIL_PORT=25

[email protected]

MAIL_PASSWORD=xxxx

MAIL_ENCRYPTION=null

0 likes
3 replies
neogeninfotech's avatar

you can try this Code in .env file change

MAIL_DRIVER = smtp MAIL_HOST = smtp.gmail.com MAIL_PORT = 587 MAIL_USERNAME = your-gmail-username MAIL_PASSWORD = your-application-specific-password MAIL_ENCRYPTION = tls

baalaa88's avatar

Hi

Thanks for reply. I would like to use our own SMTP server and its working fine in SMTP Phpmailer. Is there any way to check mail log? Its not showing any error also while running mail function.

zahidgani's avatar

Hi I dont want to use gmail but personall email to send mail throuh smtp how to used

Please or to participate in this conversation.