Sending infopath form view in mail through code (in event receiver) - InfoPath Dev
in

InfoPath Dev

Sending infopath form view in mail through code (in event receiver)

Last post 07-06-2013 10:01 PM by santosh.prasanna. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 05-06-2013 09:07 AM

    Sending infopath form view in mail through code (in event receiver)


     Hi All,

     I have  a info-path form which gets saved into a form library after a user submits it. When a form is saved to the library , an event receiver is triggered.

    I have a set of operations to be done in the receiver. At the end of each operation I need to send a mail to the user with submit button. 

    How can i send the info-path view with button  in a mail through event receiver. Please help anyone.

     

    Thanks,

    jovitech

  • 07-06-2013 10:01 PM In reply to

    Re: Sending infopath form view in mail through code (in event receiver)

    In the event reciver, you can use this method to send email to the user. If you want to send infopath form. you need to fetch the lonk and pass as the url... private void SendEmailToApprover(SPItemEventProperties properties, string strEmail, string strHtmlBody) { using (SPWeb web = properties.OpenWeb()) { string strHtmlSubject = properties.ListItem["Form User"].ToString(); StringDictionary headers = new StringDictionary(); string strCCEmail = "[email protected]"; headers.Add("to", strEmail); headers.Add("bcc", strCCEmail); headers.Add("subject", strHtmlSubject); SPUtility.SendEmail(web, headers, strHtmlBody); } } Thanks, Sandy
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.