Hi,
I use SharePoint 2010 and an ER (event receiver) built in VS (Visual Studio) on ItemAdded event.
The ER runs on a custom list.
I use SPUtility.SendEmail (the headers do NOT have FROM address)
StringDictionary headers = new StringDictionary();
headers.Add("to", "JohnSmith@company.com");
headers.Add("subject", " Test subject ");
SPUtility.SendEmail(properties.Web, headers, " Test body ");I thought FROM address (in above email) should be same as the one I configured in Central Admin > System Settings > Outgoing E-Mail Settings > From address.
Still to my surprise the email is sent FROM the email of the user adding this item?
Is this expected behavior? Am I making any mistake? I believe the email should be sent from the address configured in central admin?
Thanks all.