Re: Using WodSMTP in VB.NET - WeOnlyDo Discussion board

Re: Using WodSMTP in VB.NET (General questions)

by woddrazen, Monday, August 25, 2008, 12:29 (5934 days ago) @ emc

Hi,


You can use COM and ActiveX in VB.NET.

Here is example how to add wodSMTP COM object in VB.NET VS 2008.

1) Start new VB.NET project
2) Go to Project and open Add reference
3) Under COM tab find Weonlydo! COM SMTP client COM object, select it and go to OK

Here is code how to add and use wodSMTP in VB.NET
[code]
Dim WithEvents smtp1 As WODSMTPCOMLib.wodSmtpCom
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
smtp1 = New WODSMTPCOMLib.wodSmtpCom

smtp1.SendSimple( from@something.com , to@something.com , test , this is test message )
End Sub
[/code]

Let us know how it goes.


Regards,
Drazen


Complete thread: