Re: SMTP Relay quetions - WeOnlyDo Discussion board

Re: SMTP Relay quetions (General questions)

by woddrazen, Thursday, June 09, 2011, 12:59 (4917 days ago) @ bkv

Hi,


About your first issue. In order for email to be relayed you need to provide that message to SmtpRelay object inside MailReceived Event.

So if you don't do that, that message will not be relayed and still it will be saved because MailTo Event is fired before.

About your second issue, you can change MailTo value inside MailReceived Event just before you add message to SmtpRelay object.

Something like this:
[code]User.Message.MailTo = only_relay_email
wodSmtpServer1.Relays.Add User.Message[/code]
Let us know how it goes.


Drazen


Complete thread: