This event is fired 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 event
is the best place to do so. You can relay message as
simple as this:
Private Sub wodSmtpServer1_MailReceived(ByVal User As
WODSMTPSERVERCtl.ISmtpUser, Action As WODSMTPSERVERCtl.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.