SMTPServer within a .Net application (General questions)
When I try to use the SMTPServer object within a .Net application the component accepts port 25 requests but just hangs. Below is some VB.Net sample code to generate the problem (it also happens when I use the Notifications Interface code as well). Hope someone can help.
Option Explicit On
Imports WODSMTPSERVERCOMLib
Public Class SMTPServerWrapper
Public WithEvents _SMTPServer As wodSmtpServerCom
Public Sub Setup()
_SMTPServer = New wodSmtpServerCom
_SMTPServer.Threads = ThreadTypes.FullThreads
_SMTPServer.Port = 25
_SMTPServer.GreetingMessage = SMTP Receiver
_SMTPServer.GoodbyeMessage = SMTP Receiver
_SMTPServer.Start()
End Sub
Protected Sub MailReceived(ByVal User As WODSMTPSERVERCOMLib.SmtpUser, ByRef Action As WODSMTPSERVERCOMLib.SmtpActions) Handles _SMTPServer.MailReceived
Debug.WriteLine( Got mail )
End Sub
end class
Complete thread:
- SMTPServer within a .Net application - DerekThoms, 2006-01-28, 02:05
- Re: SMTPServer within a .Net application - wodSupport, 2006-01-28, 02:09
- Re: SMTPServer within a .Net application - DerekThoms, 2006-01-28, 02:10
- Re: SMTPServer within a .Net application - wodSupport, 2006-01-28, 02:12
- Re: SMTPServer within a .Net application - DerekThoms, 2006-01-28, 02:12
- Re: SMTPServer within a .Net application - DerekThoms, 2006-01-28, 02:16
- Re: SMTPServer within a .Net application - wodSupport, 2006-01-28, 02:22
- Re: SMTPServer within a .Net application - DerekThoms, 2006-01-28, 02:26
- Re: SMTPServer within a .Net application - wodSupport, 2006-01-28, 02:28
- Re: SMTPServer within a .Net application - DerekThoms, 2006-01-28, 02:33
- Re: SMTPServer within a .Net application - wodSupport, 2006-01-28, 02:36
- Re: SMTPServer within a .Net application - DerekThoms, 2006-01-28, 02:40
- Re: SMTPServer within a .Net application - wodSupport, 2006-01-28, 02:36
- Re: SMTPServer within a .Net application - DerekThoms, 2006-01-28, 02:33
- Re: SMTPServer within a .Net application - wodSupport, 2006-01-28, 02:28
- Re: SMTPServer within a .Net application - DerekThoms, 2006-01-28, 02:26
- Re: SMTPServer within a .Net application - wodSupport, 2006-01-28, 02:22
- Re: SMTPServer within a .Net application - DerekThoms, 2006-01-28, 02:16
- Re: SMTPServer within a .Net application - DerekThoms, 2006-01-28, 02:12
- Re: SMTPServer within a .Net application - wodSupport, 2006-01-28, 02:12
- Re: SMTPServer within a .Net application - DerekThoms, 2006-01-28, 02:10
- Re: SMTPServer within a .Net application - wodSupport, 2006-01-28, 02:09