G
G
Gleb Sugak2018-11-11 16:42:47
JavaScript
Gleb Sugak, 2018-11-11 16:42:47

How to create a program to work with mail servers to send and receive messages (pop, smtp, imap)?

Преподаватель дал задание.
"Создать программу для работы с почтовыми серверами для отправки и получения сообщений (pop, smtp, imap). Должна быть предусмотрена возможность ввода имени пользователя и пароля, а также параметров сервера.
Использовать любой язык программирования, позволяет решить поставленную задачу."
Как можно реализовать эту программу? Можно ли сделать её с помощью JavaScript, CSS, HTML?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
Яков Е, 2018-11-11
@Zifix Куратор тега Qt

Можно сделать на любом языке, для которого есть соответствующая библиотека, или который хотя бы поддерживает линковку с сишными библиотеками.
https://www.google.com/search?q=С%2B%2B+qt+imap+sm...

S
Saboteur, 2018-11-12
@saboteur_kiev Куратор тега C++

Read about simple examples of working with mail protocols.
javascript won't help you except javascript on nodejs.

T
tugo, 2018-11-14
@tugo

For example, let the language be C++.
We are looking for a library that supports what we need (it's unreasonable to write it ourselves).
Here's what I found on C++
libmailcore.com
https://stackoverflow.com/questions/1796472/cross-...
We make the wrapper in C++ what we can.
Options.
1. Graphical interface
2. Console application. Options are passed via command line arguments.
3. Console application. Arguments fit into the configuration file, which lies next to the application.
The file name is passed as a command line argument.
You can do 3 options, the teacher will check it out (maybe).
Next, we connect the found library to our application, use its API. We get the result.
Let's say Python.
There is something for him.
https://pythonspot.com/read-email-pop3/
https://docs.python.org/3/library/poplib.html
https://stackoverflow.com/questions/43631176/read
-... if the result is - we do GUI.
Another question is how to demonstrate the program. If they brought it on a flash drive, launched it - with Python there may be a surprise. Need to learn how to demonstrate.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question