SMTP relay in case if message was sent to more the (wodSmtpServer / wodPop3Server / wodImapServer)
What is the best approach for message relay if it was sent to more than one recipient?
In you sample № 4. Only relays received messages you are using MailReceived event like:
Private Sub wodSmtpServer1_MailReceived(ByVal User As WODSMTPSERVERCOMLib.ISmtpUser, Action As WODSMTPSERVERCOMLib.SmtpActions)
PrintList *** Mail received from & User.HostName & ! Contents follows:
PrintList *** Adding message to be relayed to & User.Message.MailTo
But MailReceived event is raised only once, for all recipients, and message will be relayed to last recipient which is saved in User.Message.MailTo property.
How to relay to all recipients?
Thanks in advance.