E
E
ErichZann2021-06-02 12:30:34
Email
ErichZann, 2021-06-02 12:30:34

How to implement sending Email for a folder/project with the ability to process an attached file?

Recently I use the application for organizing tasks and there I found the opportunity for each category of tasks (Work, Home, Family, Leisure and a couple of categories) to send an email with an attached file.
For example, for the task folder/category Work , an email like [email protected] is generated, and if you send an email with an attached file to this email, a task will be created for the category Work where the title of the letter will be taken for the name of the task and for this created task, a file from Email will be attached.

Please tell me how the email creation algorithm for such folders is approximately implemented, what can I read and see about this (I couldn’t find anything sensible myself) for C #?
Is there a generation of real emails for each category (there is a maximum limit of 200 categories in the application) or for one user (i.e. me in this case) there is 1 specific email address and catch-all is configured for it?

So far I have only found a library for processing incoming emails with files: MailKit.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2021-06-02
@ErichZann

For all users, there is 1 handler that accepts ALL letters (catch-all), and already by the name of the letter understands what and with whom to do.
Physically boxes of course are not created.
In fact, C# itself has nothing to do with it - a mail server is configured that redirects the processing of all letters to which thread the script / daemon / etc in the format agreed with the script

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question