Re: SMTP Relay quetions (General questions)
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:
- SMTP Relay quetions - bkv, 2011-06-09, 08:46
- Re: SMTP Relay quetions - woddrazen, 2011-06-09, 09:55
- Re: SMTP Relay quetions - bkv, 2011-06-09, 10:38
- Re: SMTP Relay quetions - bkv, 2011-06-09, 10:42
- Re: SMTP Relay quetions - woddrazen, 2011-06-09, 11:50
- Re: SMTP Relay quetions - bkv, 2011-06-09, 12:23
- Re: SMTP Relay quetions - woddrazen, 2011-06-09, 12:59
- Re: SMTP Relay quetions - bkv, 2011-06-09, 14:05
- Re: SMTP Relay quetions - woddrazen, 2011-06-09, 14:53
- Re: SMTP Relay quetions - bkv, 2011-06-09, 14:05
- Re: SMTP Relay quetions - woddrazen, 2011-06-09, 12:59
- Re: SMTP Relay quetions - bkv, 2011-06-09, 12:23
- Re: SMTP Relay quetions - woddrazen, 2011-06-09, 11:50
- Re: SMTP Relay quetions - bkv, 2011-06-09, 10:42
- Re: SMTP Relay quetions - bkv, 2011-06-09, 10:38
- Re: SMTP Relay quetions - woddrazen, 2011-06-09, 09:55