SMTP using a NetworkStream in VB?


Question: I'm trying to write a simple function to send a message using SMTP. I'm having a little bit of difficulty understanding how to read/write data over the network stream. Can somebody give me a quick 101 on how to send and receive information over the stream? For example, once I connect, I need to wait for the HELO from the recipient server, then I need to send my HELO and wait for response. Can someone give me some pointers on how to do this little dance?

Answer:
Visual Studio comes with a code snippet to send an email via SMTP. You can insert it by going to Edit > Intellisense > Insert Snippet. The relevant snippet is in Connectivity and Networking > Create an Email Message.
More Questions & Answers...
  • Networking xbox 360?
  • Streaming music from computer to computer, over a wireless router?
  • Are we supposed to listen to THESE uneducated conspiracy nuts instead of our great leader, "W" about 9/11?
  • How do I stream media from ubuntu to my ps3?
  • Is there a way to stream the xbox 360 screen to my windows media center computer screen?
  • Good Or Bad?
  • I dropped my ibook off a desk, PLEASE HELP!?
  • How has customer support been for you?
  • The questions and answers post by the user, for information only, AnswersRoom.com does not guarantee the right
    Copyright © 2007 AnswersRoom.com -   Terms of Use -   Contact us

    Hot Topic