R
R
Roman Rakzin2017-12-17 23:14:38
Email
Roman Rakzin, 2017-12-17 23:14:38

How to instantly get notified of a new email in C#?

How to instantly get notified of a new email in C#?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Kuznetsov, 2017-12-18
@DarkRaven

To answer this question, you need to understand a few things.
Why the question is about mail - because you can be temporarily banned for unintentional DDos (many accesses to the resource with short intervals).
And then, automatically, the second question comes out, how much you can evaluate. Usually, mail clients poll mail with a delay of 5 to 15 minutes - here who has what settings.
If you need it faster, then here you can:
The second option is that either you pull mail from your server already with your IMAP timeout (more precisely, not mail, but new messages and, for example, only message headers - this is easier), or you come up with some another way of checking and subsequent notification (mail is stored in the database, for example).

S
SimAllll, 2017-12-17
@SimAllll

client library for imap and check mail every 250 ms, if exception - try to log in again, if you can't log in for a long time - TODO

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question