Email doesn't go to all emails in a email list from SharePoint Provider Hosted Add-in RRS feed

  • Question

  • Hi,

    I my on-premise provider hosted add-in, I am sending email notification to a email address list from SQL database.

    The problem is, few email addresses never get email from the application. For example, I have 10 email addresses in a SQL table. I am retrieving the emails from database, storing in a list and sending email using SendEmail() Utility. But, 6 email addresses get email, 4 doesn't get. Event that 4 email address don't show up in the TO address box in my sent email. Please see my code below-

    EmailProperties emailProperty = new EmailProperties
                            To = toEmailAddressList,
                            Subject = subject,
                            Body = body
    Microsoft.SharePoint.Client.Utilities.Utility.SendEmail(clientContext, emailProperty );

    toEmailAddressList is the list of email address retrieved from the database. Could someone help me out of this?

    Thanks in Advance.

    Friday, July 5, 2019 6:17 PM

All replies