Chapter 24. Sending Form Results to Email

IN THIS CHAPTER

Adding Server-Side Code to Send Email

Sending HTML Emails

Sending Emails with Attachments

Checkpoint

Adding Server-Side Code to Send Email

After making the configuration entries in the last chapter, the ASP.NET application is configured to send email. In this chapter, you’re going to write code that sends an email when a user submits the contact form created in Chapter 15.

Reviewing the Contact Form

It’s been a while since you last worked with the contact form, so here’s a quick review of the controls that exist in it. Table 24.1 lists each control and the data that each control supplies to the email you’ll be sending.

Table 24.1. Controls in the Contact Form

Adding the Code

To add the ...

Get The Microsoft Expression Web Developer's Guide to ASP.NET 3.5: Learn to create ASP.NET applications using Visual Web Developer 2008 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.