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.

Distict - Support - FAQ

Products Downloads Sales Support About us
Knowledge Base Ask Cody Resources



        
 
How do I use SMTP in ASP.NET
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, "", "")






  02/04/2012   Legal notices | PRIVACY Policy |