NOTE: This method is called only if you
implemented
IwodSmtpNotify
interface in your application, and
wodSmtpServer1.Notification
property has received reference to
instance of your implementation.
This notification method is called just after client
posted message body. At this point, you should decide what
you will do with the message. If you don't like
received message - be fair enough and inform client so, by
setting Action = Deny.
If you will store message to appropriate mailbox, you
can leave Action variable as is
(default is set to Allow). However, you should
really copy received message to destination mailbox or
folder with messages.
NOTE: If you plan to relay received message, this
notification is the best place to do so. You can
relay message as simple as this:
Private Sub INotifications_MailReceived(ByVal Owner As
WODSMTPSERVERCOMLib.IwodSmtpServerCom, ByVal User As
WODSMTPSERVERCOMLib.ISmtpUser, Action As WODSMTPSERVERCOMLib.SmtpActions)
wodSmtpServer1.Relays.Add
User.Message
End Sub
Once message is received, you can open it from saved
file and parse (or do whatever needed) with any MIME
parsing program/component, such as
wodMailbox.