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, "", "")






12/22/2024   Legal notices | PRIVACY Policy |