M
M
Maxim2018-03-09 19:25:45
Yii
Maxim, 2018-03-09 19:25:45

How to limit mail messages?

Good evening!
There is such a problem. The maximum number of letters sent via the smtp server is no more than 100 letters per hour, no more than 1000 letters per day. The size of one letter is limited to 50 MB. The letter must have no more than 100 recipients. It is necessary to check all these parameters before sending, and if the limit is exceeded, give an error. If the limit is only on the number of letters per day and hour - postpone and continue after a certain time.
Can you tell me how to implement it better? Where to store data on the number of letters per hour and day?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2018-03-09
@myks92

Where to store data

In the database
depends on how sending is implemented, how letters are formed, etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question