Sending mail with SMTP from task scheduler

AitorEGAitorEG Posts: 246Member
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 Posts: 33Member
    You should check the "Job Queue Log Entries" on the job queue. Maybe sending mail no. 16 caused an error.
  • JuhlJuhl Posts: 592Member
    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 Posts: 246Member
    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.