Sending mail with SMTP from task scheduler

AitorEGAitorEG Member Posts: 342
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

Answers

  • frankmortensenfrankmortensen Member Posts: 42
    You should check the "Job Queue Log Entries" on the job queue. Maybe sending mail no. 16 caused an error.
  • JuhlJuhl Member Posts: 724
    Smtp restrictions lies with provider.
    I always send them one by one and write to my log with commit afterwards.
    Follow me on my blog juhl.blog
  • AitorEGAitorEG Member Posts: 342
    Thank you both for your answers.
    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!!
Sign In or Register to comment.