Using WodSMTP in VB.NET - WeOnlyDo Discussion board

Using WodSMTP in VB.NET (General questions)

by emc, Monday, August 25, 2008, 11:10 (5934 days ago)

Hello,

I'm trying use it with VB.NET 2008.

What is better to add it as? COM or ActiveX?

How do I configure them in my app?

I tried
[code]dim smtp1 as new WODSMTPLib[/code]
but I get errors.

I found nothing in the manual and forum.

Thanks in advance!

Re: Using WodSMTP in VB.NET

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

Re: Using WodSMTP in VB.NET

by emc, Monday, August 25, 2008, 15:26 (5933 days ago) @ woddrazen

Thank you, it works!