Sending E-Mail upon a New Guestbook Entry
One cool feature that is worth adding to our guestbook application is to have the application automatically send an e-mail to us whenever a user leaves a guestbook entry. Without an e-mail notification, in order to see if the guestbook has had any new entries, we'd have to visit the ViewGuestbook.aspx Web page. While this takes only a few moments, it can be a disheartening process if we continually check this page yet find no new guestbook entries.
Therefore, let's extend the AddEntry.aspx Web page so that whenever a user leaves a guestbook entry, we are sent a short e-mail detailing who left the message, the e-mail address (if supplied), the message, and the time the guestbook entry was made.
In order ...
Get SAMS Teach Yourself ASP.NET in 24 Hours now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.