locked
Emails are not going RRS feed

  • Question

  • Hello all,

    In last of the workflow i have placed "SendEMail" activity. When a workflow near completes then "SendEmail" activty runs. But emails are not going to anyone. Following is the code and workflow image. Please correct if iam missing anything, thanks.

    Private Sub sendEmail1_MethodInvoking(ByVal sender As System.Object, ByVal e As System.EventArgs)

            Dim headers As New StringDictionary()

            headers.Add("to", MYDOMAIN\mareena.arrora)

            headers.Add("cc", MYDOMAIN\mareena.arrora)

            headers.Add("from", MYDOMAIN\mareena.arrora)

            headers.Add("subject", "Your leave application has been approved")

            headers.Add("content-type", "text/html")

            Dim bodyText As String = "Your leave application has been approved."

            SPUtility.SendEmail(workflowProperties.Web, headers, bodyText)

        End Sub

    Friday, April 27, 2012 8:01 AM

Answers

All replies