I’m using the Mailgun SMTP and it takes between 45-60 seconds to send emails. However, if after the 45 seconds you try to resend the email it is sent in 2 seconds.
If I try to send an email 10 minutes after, it occurs the same (it takes 60 seconds).
How can it happens?
I add that I has another site in .NET and I use the same SMTP (Mailgun) and it takes 2 seconds always, so it seems like it’s a PHP issue.
Maybe, I should try with the Mailgun API instead of SMTP.
Can you write me the source code to send emails with Mailgun API?
If you know another alternative, please, let me know.
Thanks