Your code does what you tell it to do. You could add more records one by one, but you should rather look at AifSendService::submitFromQuery().
Your code does what you tell it to do. You could add more records one by one, but you should rather look at AifSendService::submitFromQuery().