Skip to main content

Recap—Using Email

That's all we need to do to add e-mail to our application, so let's recap what we've done, before we move on.

  • We obtained the user's e-mail address, which was entered into a form text box on the Orders page, by calling the %request object's Data method. generated description: smallbacktriangle.gif

  • We connected to a mail server by creating an smtp object and setting its smtpserver property. generated description: smallbacktriangle.gif

  • We created a MailMessage object and filled in its From, To, and Subject properties. Then we added message text and sent the message. generated description: smallbacktriangle.gif

Note that, in addition to sending messages, we can receive e-mail, too. For more information, check out the %Net.POP3Opens in a new tab class.

FeedbackOpens in a new tab