DotNetNuke.Services.Mail.Mail.SendMail("programmer@mysite.com", OurUserInfo.Email, "", "Access Denied", EmailBody, "", "HTML", "", "", "", "")
The only way to really test your example is to issue multiple sends.
DotNetNuke.Services.Mail.Mail.SendMail("programmer@mysite.com", "email1@mysite.com, "", "Subject1", "Body1", "", "HTML", "", "", "", "")DotNetNuke.Services.Mail.Mail.SendMail("programmer@mysite.com", "email2@mysite.com, "", "Subject2", "Body2", "", "HTML", "", "", "", "")
If both emails are received, then something else in your code or your data is causing the problem. Like I mentioned, some servers will reject messages with an empty email, subject or body. The code you provided does not test for or ensure actual values per userID.
I hope this is of some help to you.