Sunday, 28 October 2012

Send Emails through .NET

by this we can send the emails .
take 4 textboxes and 1 button like this....

in the code window add namespace..

and in the button click event write the code....


networkcredential ma=new networkcredential("emailid","password");
in the place of "emailid and password" write your emailid through which u want to send the mail and the password of your account...

3 comments :

  1. Replies
    1. all examples are tested by me .
      first i tested it and after post it on the blog.
      check your process once again

      Delete
  2. how to add name with mail id. so that the name will come in the inbox instead of mail id..
    just like this
    sudeep

    ReplyDelete