System.Web.Mail FAQ

Complete FAQ Listing


3 Advanced Programming Samples Printer Friendly   Email This FAQ   Discuss

This System.Web.Mail Advanced Samples is a series of code samples and supporting commentary designed perform advanced email operations. Some of the topics discussed here cannot be achieved using System.Web.Mail, but are listed for completeness, and because I have seen these questions asked on various newsgroups and lists.

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
  • smtpserver    [ Reply ]
  • How can I know whether the sent email is really received by the receiver or not?    [ Reply ]
  • BCC and read receipt    [ Reply ]
    • RE: BCC and read receipt    [ Reply ]
  • body of email    [ Reply ]
    • RE: body of email    [ Reply ]
  • Content-Transfer-Encoding ?    [ Reply ]
  • receiving mails    [ Reply ]
    • RE: receiving mails    [ Reply ]
    • RE: receiving mails    [ Reply ]
    • RE: receiving mails    [ Reply ]
  • How do I add a TNEF stream to an email header?    [ Reply ]
  • Send Folder    [ Reply ]
    • RE: Send Folder    [ Reply ]
  • At what point is the message mailed    [ Reply ]
    • RE: At what point is the message mailed    [ Reply ]
  • How do I add voting buttons to a mail?    [ Reply ]
  • implementation of dial out feature of Outlook in c#    [ Reply ]
  • Why email from ASP.NET is different from Outlook email    [ Reply ]
  • How to check on delivery failure    [ Reply ]
    • RE: How to check on delivery failure    [ Reply ]
  • Email    [ Reply ]
    • RE: Email    [ Reply ]
    • RE: Email    [ Reply ]
  • Get the client e-mail address    [ Reply ]
    • RE: Get the client e-mail address    [ Reply ]
  • SMTP mail    [ Reply ]
    • RE: SMTP mail    [ Reply ]
  • how to send data in datagrid to email    [ Reply ]
  • mails blocked in badmails of virtual directory    [ Reply ]
  • i think it's a problem    [ Reply ]
  • Email from PDA    [ Reply ]
  • Exception Details: System.Runtime.InteropServices.COMException: The transport failed to connect to the server.    [ Reply ]
  • cant send the mail    [ Reply ]
    • RE: cant send the mail    [ Reply ]
  • Return Path    [ Reply ]
    • RE: Return Path    [ Reply ]
      • RE RE: Return Path    [ Reply ]
        • RE: RE RE: Return Path    [ Reply ]
  • Saving an e-mail    [ Reply ]
    • RE: Saving an e-mail    [ Reply ]
  • my mail program some times won't work    [ Reply ]
  • The message could not be sent to the SMTP server. The transport error code was 0x80040217. The server response was not available    [ Reply ]
  • How to Convert .msg files to txt files    [ Reply ]
  • error about program    [ Reply ]
  • how to read mail using indy.socket    [ Reply ]
  • how to read sent items through .net    [ Reply ]
  • how to read sent items through .net    [ Reply ]
  • Adding Categories/Keywords    [ Reply ]
  • Open Mail messages in Pickup directory    [ Reply ]
  • How to send a mail multiple user    [ Reply ]
  • How do I know if an email is a reply to one I sent    [ Reply ]
    • RE: How do I know if an email is a reply to one I sent    [ Reply ]
  • What to display my Received Mail in Specific format. How to do?    [ Reply ]
  • Issues with sending an email    [ Reply ]
    • RE: Issues with sending an email    [ Reply ]
      • RE RE: Issues with sending an email    [ Reply ]
        • RE: RE RE: Issues with sending an email    [ Reply ]
  • How can I change the EHLO/HELO field?    [ Reply ]
  • Send Email Failure    [ Reply ]
    • RE: Send Email Failure    [ Reply ]
  • Sending mail with voting button option in C#    [ Reply ]
  • 11    [ Reply ]
  • Failover SMTP server    [ Reply ]