How to return user specific message if server deny - WeOnlyDo Discussion board

How to return user specific message if server deny (wodSmtpServer / wodPop3Server / wodImapServer)

by Aleksey Diachok, Wednesday, September 05, 2012, 15:15 (4462 days ago)

Hi all,

can anyone tell me how to return user specific message if wodsmtpserver denying incoming message.

I use wodsmtpserver to receive users' messages from Exchange.I save statistic information to DB. And I should stop all messages which were not processed.

If my DB is unavailable I set Deny flag in [code]_IwodSmtpServerComEvents.MailFrom[/code] event. And it causes returning of SMTP error: Cannot receive mail from...

Then Exchange sends a Undelivery report to the sender/administrator with Cannot receive mail from... .

But i want Exchange to send something like DB is currently unavailable.

Is there any way to cancel receiving of message on wodsmtpserver side and specify my explanation


Complete thread: