sending email messages in asp.net 2.0

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • denvercr
    New Member
    • Aug 2006
    • 13

    sending email messages in asp.net 2.0

    hi guys,

    i am developing a training website with notification via email (e.g. email to: name.lastname@c ompany.com) . What are the libraries I will be needed? and complelet syntax which will send a message thru email?

    Thanks for your kindness guys. God bless u all...
  • dotnet
    New Member
    • Jul 2006
    • 22

    #2
    Hi
    use this link for sending mails http://www.systemnetmail.com/
    thats gr8 link.. it would definately work for u.

    Regards

    Comment

    • denvercr
      New Member
      • Aug 2006
      • 13

      #3
      Sir Nitin,

      Thank you so much! the site realy helped me alot. You owe me one =) ..
      God bless.

      til next post,
      Denver Crisostomo - Philippines

      Comment

      • shaam
        New Member
        • Aug 2006
        • 11

        #4
        first we should use the name space
        System.Web.Mail
        code for sending a mail through .Net is


        MailMessage mm=new MailMessage();
        mm.From="abc_cb a@yahoo.co.in";
        mm.To="xyz_zyx@ yahoo.com";
        mm.Subject="exa mple program";
        mm.Body="hi";
        mm.Priority = MailPriority.Hi gh;
        SmtpMail.Send(m m);


        hope this code will be useful to u....

        Comment

        • denvercr
          New Member
          • Aug 2006
          • 13

          #5
          Thanx Shaam. that code will be useful to my site. =)

          Comment

          • dotnet
            New Member
            • Jul 2006
            • 22

            #6
            Thanx for appreciation denverc!

            Comment

            Working...