Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

11
  • so you are not defining client.Host ?? Commented Jan 23, 2017 at 13:32
  • no i have already mentioned it in this line - System.Net.Mail.SmtpClient smtp = new System.Net.Mail.SmtpClient(smtpServer.Server.Address); Commented Jan 23, 2017 at 13:35
  • Looks like some access related issue, so have updated code to include Credentials Commented Jan 23, 2017 at 13:47
  • will try with credentials and without credentials but i am confused as my SendEmail activity inside the workflow is sending emails correctly also user notifications are working well also .. so not sure why my event receivers are not sending emails.. Commented Jan 23, 2017 at 13:55
  • 1
    hmm ...Credentials are necessary if the server requires the client to authenticate before it will send e-mail on the client's behalf. According to this [SmtpClient.Credentials Property] (msdn.microsoft.com/en-us/library/…) Commented Jan 23, 2017 at 13:58