Hi everyone,
I've created a function that send an unknown number of mails to customers. What I've seen, is that yesterday, I need to send 20 mails, and only 15 were sent. The last 5 haven't been sent. When the task ends, we should also send a mail with the summary of the sent mails, but it hasn't been sent either. Does the SMTP have any typ of limitation?
Thank you very much
0
Answers
I always send them one by one and write to my log with commit afterwards.
Tonight everything worked perfectly. I've solved adding a SLEEP sentence of 15 seconds between every mail creation, so I just send 4 mails per minute, saving the limitations of the mail service.
Thanks again!!