System.Web.Mail FAQ

Complete FAQ Listing


2 Quickstart Programming Samples Printer Friendly   Email This FAQ   Discuss

This System.Web.Mail QuickStart is a series of samples and supporting commentary designed to quickly acquaint developers with the syntax of sending email in .NET. The QuickStart samples are designed to be short, easy-to-understand illustrations of System.Web.Mail.

Important: When testing these samples, always be sure to:
1. Have a reference set to the System.Web.dll.
2. If you are using C#, be sure the "using System.Web.Mail;" statement is found at the top of your code. Or, if you are using VB.NET, be sure the "Imports System.Web.Mail" statement if found at the top of your code.
3. Set the correct FROM and TO addresses.
4. Set the SmtpMail.SmtpServer to a valid server that allows relaying for your FROM email address or the IP address you are sending email from.
 

Discuss This FAQ Item
Got a question? Another Suggestion? Want to post your solution? Discuss it below.
New Post
  • Read receipt    [ Reply ]
    • RE: Read receipt    [ Reply ]
    • RE: Read receipt    [ Reply ]
  • hello    [ Reply ]
  • sendmail    [ Reply ]
  • SMTP nedd username and password    [ Reply ]
    • RE: SMTP nedd username and password    [ Reply ]
    • RE: SMTP nedd username and password    [ Reply ]
  • How to get mails from pop3 server    [ Reply ]
    • RE: How to get mails from pop3 server    [ Reply ]
      • RE RE: How to get mails from pop3 server    [ Reply ]
      • RE RE: How to get mails from pop3 server    [ Reply ]
    • RE: How to get mails from pop3 server    [ Reply ]
  • How to trap errors in SMTPMail.Send(strMessage)    [ Reply ]
  • Using default smtp server    [ Reply ]
    • RE: Using default smtp server    [ Reply ]
  • Dot in Email Address    [ Reply ]
  • receiving my messages from Road runner    [ Reply ]
  • error in W2003 server    [ Reply ]
  • Acknowledgement Code    [ Reply ]
  • acknowledgement    [ Reply ]
  • What is the Maximum Size of Attachment    [ Reply ]
  • cdomessage.object    [ Reply ]
  • Email subject    [ Reply ]
    • RE: Email subject    [ Reply ]
  • set to receive undeliverable notification    [ Reply ]
  • How can handle Bad Mails?    [ Reply ]
  • Please Help me    [ Reply ]
  • http://www.craftwork-trade.com    [ Reply ]
  • undelivered mails    [ Reply ]
    • RE: undelivered mails    [ Reply ]
  • Mail has not delivered to one resident.    [ Reply ]
  • Multiple fields into one e-mail body.    [ Reply ]
  • about sending linkin email    [ Reply ]
  • problem with title    [ Reply ]