2
votes

I am creating a C# event handler for SharePoint 2010 (sandboxed solution). When the ItemAdded event is hit, I have some logic that I perform, and then I would like to send an email.

Unfortunately, it appears that SPUtility.SendEmail and System.Net.Mail are not allowed in sandboxed solutions. Is there any way around this? Thanks.

1

1 Answers

0
votes

You are correct according to the documentation SPUtility.SendEmail is not available in a sandbox solution.

The solution would be to create a full trust proxy that can send the email for you.