Potential Misconfiguration in Maximum Number of deluge sendmail Statements

Potential Misconfiguration in Maximum Number of deluge sendmail Statements

In my database, I have assigned a numeric "group" number to 259 records to control how many emails get sent using the following function:

  1. void NOTIFY(int Group_Number)
  2. {
  3.     for each row in parent_database  [Group == Group_Number]
  4.     {
  5.         sendmail
  6.         (
  7.             To       :  row.Parent1_Email 
  8.             From     :  zoho.adminuserid 
  9.             Subject  :  "sample" 
  10.             Message  :  "yadda yadda" + thisapp.printout(row.user_key) + "yadda yadda" 
  11.         )
  12.     }
  13. }
The function  thisapp.printout(row.user_key) adds an html table to the email and is 28 lines long for a specific record.

When I run the sendmail function I get an error message for maximum deluge statements hit. Even with this error, I know some of the emails get sent. My log shows the following, which is strange because there are a maximum of 259 emails being sent. I have tried this twice to the same effect.

With the information I have provided, does this error make sense?

Note: One of the emails sent should go to my personal gmail inbox but has now not arrived after 25 minutes so I also think the email count is wrong.




buzzap>edirectory shared

Cheers,
John Whitney