A
A
Alexander2020-04-03 00:33:32
PHP
Alexander, 2020-04-03 00:33:32

Why does the mail function take 60 seconds to complete?

The mail function takes more than 60 seconds to complete. Usually 60.4 somewhere. It feels like there's just a delay somewhere.
How and where to dig?

UPD:
mail('мой@адрес.почты', 'test', 'body');

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Karpion, 2020-04-03
Madzhugin @Suntechnic

Most likely, the server resolves the DNS name of the client to the IP address - and cannot, so it is waiting for a timeout.
Second option: You are trying to push the letter to the main relay, but he does not answer. And after a timeout - the letter is thrust into the spare relay.
Third option: GreyListing is running on the server.
Specify on which computer you are running the mail function; and which server you are connecting to.

X
xmoonlight, 2020-04-03
@xmoonlight

Any delay in network traffic - immediately turn on the sniffer and read (understand) the log to understand the whole process and determine the cause of the delay.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question