S
S
SwoDs2015-12-16 16:02:20
PHP
SwoDs, 2015-12-16 16:02:20

How long does mail() take?

It is necessary for your own reasons to put mail () in foreach, what do you think about it, will the mail be sent in time?
Answer: You should not do this - joxi.ru/EA490jDHDovN3r thanks to the dock)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander Litvinenko, 2015-12-16
@edli007

will be in time, php language is synchronous, the mail simply transfers the smtp task to the server.

R
Robot, 2015-12-16
@iam_not_a_robot

Mail() is executed quickly, but the mailboxes will most likely be empty))

A
Andrey, 2015-12-16
@VladimirAndreev

well, it all depends on the settings of the mail sender and the network. if there are a lot of letters, a background script is needed.
if the network is slow, then after some time the sender's queue will reach the limit and he will stop receiving letters, you will have to pause and load letters to him further, as soon as he will let him go ..

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question