You can use a queue to send the email so your main app doesnt slow down.
Thank you for your response. I am just sending 1 email as a test and yet still exceeding on the 60 second timeout. Any idea what is the problem? And can you explain how mail server works?
I use gmail all the time, mails are usually sent within 5 seconds. What do you have as a host? gmail.com will not work and will result in a timeout, use smtp.gmail.com instead
For future reference: include some code samples for a question like this, otherwise we just have to guess - makes it harder for everybody :-)
sorry about that elimentz :)
please refer to this link for my simple test
Daskul, have you tried to use the following port number?
//app/config/mail.php file
'port' => 587 //default port number
In my configuration this port number help me to send mails using gmail.
Hope it helps you.
codeATbusiness said:
Daskul, have you tried to use the following port number?
//app/config/mail.php file 'port' => 587 //default port number
In my configuration this port number help me to send mails using gmail.
Hope it helps you.
yes i tried it but no luck. still having timeout.
I am under a domain. what are the things I need to check here?
for gmail, encryption has to be 'ssl' rather than 'tls'. hope that helps!
@Daskul You setting are correct must be your internet connection or your host server is having some down time, was having the same issue, i just changed my port and enc type to what you are using an changed my email and it works perfectly!
Did you find any solution @Daskul??
Im using a shared hosting in Godaddy and Google as mail server.
I've tested these 3 ("smtp", "mail", "sendmail") and the result is the same: I got the mail in my inbox with a 3min delay even thought the mail has the time as sent 3min ago.
Im starting to think the delay is coming from the framework. And im using the option send. (by the way)
Thanks!
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community