Results 1 to 7 of 7

Thread: System.Web.Mail In Asp.Net

  1. #1
    Join Date
    Nov 2009
    Posts
    712

    System.Web.Mail In Asp.Net

    Hello, I am new in Asp.net programming and now I want to know the details about System.Web.Mail, if anyone is having information about it, then please provide it to me. I have search on internet, but not find anything related to it. So, if anyone is having details about it. Then please send me that by replying me.

  2. #2
    Join Date
    May 2008
    Posts
    2,012

    Re: System.Web.Mail In Asp.Net

    As you know that the System.Web.Mail is the namespace which comes into the .NET. If you want to send email in the .net then it is necessary to use. It comes in the .net Framework. This namespace provides you the three classes as below:
    • MailMessage : This is used for the making the message content to the email.
    • MailAttachments : If you want to send a mail with attachment then you need to make use of this.
    • SmtpMail : If you want to send email to the relay server then you must be need to make use of this.

  3. #3
    Join Date
    Apr 2008
    Posts
    2,005

    Re: System.Web.Mail In Asp.Net

    The System.Web.Mail namespace gives you the class having name as MailMessage which is helpful for managing the data of the mail. This class provides you following Properties:
    • Attachment
    • Bcc
    • Body
    • BodyEncoding
    • BodyFormat
    • Cc
    • From
    • Header
    • Priority
    • Subject
    • To

  4. #4
    Join Date
    May 2008
    Posts
    2,297

    Re: System.Web.Mail In Asp.Net

    Hello, I think you must need to check the code below which has used the namespace System.Web.Mail in the program for sending the mail.
    Code:
    using System;
    using System.Web.Mail;
    
      class Chekcing
      {
        static void Main(string[] args)
        {
          Chekcing.Test("[email protected]",
                        "[email protected]",
                        "Test Message",
                        "Hello World! ");
        }
        public static void Test(string From, string To, string Sub, string Body)
        {
          MailMessage msg = new MailMessage();
          msg.From        = From;
          msg.To          = To;
          msg.Subject     = Sub;
          msg.BodyFormat  = MailFormat.Text;
          msg.Body        = Body;
          try
          {
            System.Console.WriteLine("Testing msg");
            SmtpMail.Test(msg);
          }
          catch( System.Web.HttpException e )
          {
            System.Console.WriteLine("Exception occurred:" +e.Message);
          }
        }
      }

  5. #5
    Join Date
    Apr 2008
    Posts
    1,948

    Re: System.Web.Mail In Asp.Net

    With the help of this System.Web.Mail in ASP.NET you can able to perform following:
    • E-mail alerts
    • Build a Web-based contact form
    • Subscription service
    • Send messages using Bcc
    • Send HTML-formatted mail

  6. #6
    Join Date
    Oct 2005
    Posts
    2,393

    Re: System.Web.Mail In Asp.Net

    System.Web.Mail Namespace is having different classes. You can send email message with the help of it and by the use of CDOSYS (Collaboration Data Objects for Windows 2000) which is a component.

    This namespace contains the classes below:
    • MailAttachment
    • MailMessage
    • SmtpMail

    This namespace contains the Enumerations below:
    • MailEncoding
    • MailFormat
    • MailPriority

  7. #7
    softtrickseo Guest

    Re: System.Web.Mail In Asp.Net

    Go to below link for detail what is this and how can you use?

Similar Threads

  1. Opera 11 looses mail after System Crash
    By Irshaad in forum Technology & Internet
    Replies: 5
    Last Post: 12-01-2011, 07:45 AM
  2. Replies: 5
    Last Post: 19-12-2010, 10:25 PM
  3. Mailman List System does not send mail
    By Adikavi in forum Technology & Internet
    Replies: 6
    Last Post: 16-06-2010, 09:56 AM
  4. PHP mail verification system
    By Antrix in forum Software Development
    Replies: 3
    Last Post: 18-05-2009, 01:27 PM
  5. Minimize Windows Mail to system tray
    By Nevermind in forum Customize Desktop
    Replies: 4
    Last Post: 26-02-2009, 10:45 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,751,830,697.93045 seconds with 16 queries