martin182
11 months ago
75
11
General

Laravel mail doesnt work on production.

Posted 11 months ago by martin182

Hi I am having an issue with sending a mail while website is hosted on windows server. It works when I host it local on my pc. Does anybody know how I can fix this?

I get the following error when I try to send an email at the website that is hosted on the windows server:

"Maximum execution time of 30 seconds exceeded"

.env:

MAIL_DRIVER=smtp
MAIL_HOST=smtp.office365.com
MAIL_PORT=587
MAIL_USERNAME=mail
MAIL_PASSWORD=password
MAIL_ENCRYPTION=tls

Update: I am trying to send just one mail from a Microsoft exchange account.

Please sign in or create an account to participate in this conversation.