System.Net.Mail Examples

Before you try out any of the demos, please update the relay server settings in Web.config!

Simple Feedback Form

The following example illustrates a simple feedback form. For completeness, take a moment to add RegularExpressionValidators to ensure that the email values are valid and RequiredFieldValidators to ensure that the required inputs are provided... Also be sure to update the To property in the code-behind class!!

Your Email:
Subject:
Body: