Distinct offers Network Monitor, the ONLY natural language Protocol Analyzer, ONC RPC for C++, .NET and Java, and IntelliTerm, the fastest Terminal Emulator for TN3270, TN5250 and VT420 on the market.

Knowledge Base

   Products   Downloads   Sales   Support   About us
  Knowledge Base  Ask Cody  Manuals  Source Code Library  Resources
 



        
 
How do I use SMTP in ASP.NET
 
Product: Distinct WebMail ObjectsTopic: SMTP componentLast updated: 3/26/2008
 
Q.: How do I use SMTP in ASP.NET
A.: In your asp.net application, add the following:

1. Go to References in the solution explorer, right click and select add reference, the "Add Reference" dialog will come up. Click the Com page and double click "Distinct Server SMTP ActiveX control", Ok. You will see DSV_SMTPLib added in the list.

2. Go to your aspx.vb file, add "Imports DSV_SMTPLib" in the very beginning.

3. In the function where you want to call this control, add following
Dim x As New DSV_SMTP()
Dim result As Boolean
result = x.EasySend(TextBoxHost.Text, TextBoxFrom.Text, TextBoxTo.Text, "", "", TextBoxSub.Text, TextBoxBody.Text, "", "")
Do you find this information useful ?       Yes   No   Not Sure




Search by Keyword


If you did not find what you are looking for:


Products

 Protocol Analyzer
The Distinct Network Monitor is a protocol analyzer for Windows that includes both packet sniffing and network traffic statistical analysis tools.

 Intelliterm
The Most Complete Terminal Emulator for TN3270, TN5250 and DEC VT220 to VT420

 RPC for C and C++
The Fastest Way to Port Your Existing Unix-RPC Applications to Windows

  9/2/2010   Legal notices | PRIVACY Policy |