A
A
Andrew2017-04-04 17:55:23
PHP
Andrew, 2017-04-04 17:55:23

PHP sending emails. PHPMailer sends email via SMTP for 5 seconds, is that normal?

I decided to use the PHPMailer library, made all the settings and started testing. I noticed that the execution time of the script that sends the message is from 5 to 6 seconds. Is this normal behavior for sending mail via SMTP using PHP, or is it too expensive and should I look for other libraries? Can you tell me others with the possibility of sending via SMTP?
UPD:
Sending is via smtp mail.ru
No
attachments I'm testing on a local machine

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitrij, 2017-04-05
@Vahmur

It is too long.
However, it should be borne in mind that many servers have a limit on the number of letters per unit of time, I don’t know specifically for mail.ru, but on the last server with which I worked, the limit was 10 letters per minute, so I was forced to implement a delay anyway.
Are you measuring the sending time by the script itself, of course? Because mail servers can have their own internal queues, and so on.
PS I didn't google for a long time, but the first information I came across was "mail.ru 1 message per minute", in general, it might make sense to study whether this server is suitable for mailing in principle ..

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question