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