W
W
whoami?root root_toor2018-05-08 15:52:07
Qt
whoami?root root_toor, 2018-05-08 15:52:07

How to send mail via MS Exchange in C++ program?

Hello!
It is necessary to make a C++ program that will send mail to users via SMTP and MS Exchange.
It is supposed to use Qt. I found several interesting projects that allow Qt5 to send mail via SMTP to Qt5:
https://morf.lv/simple-tls-ssl-smtp-client-for-qt5
https://github.com/bluetiger9/SmtpClient-for -Qt.
With SMTP, it seems to be clear, as I understand it, you just need to set the desired server for sending messages (smtp.mail.ru/smtp.gmail.com, etc.) and voila.
And here about Exchange it is absolutely not clear how to make it. The scenario is as follows - we install the program on a machine that has access to the exchange server. And must send mail through this server.
How to do it? The Bat can do this! Perhaps you need to use MAPI for these purposes? Maybe there is already something similar in open source?
I will be glad to any advice.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
whoami?root root_toor, 2018-05-10
@1q2w1q2w

yes, but how to do it? Just specify the exchange server as the smtp server? I tried to set such a server, but letters are not sent, request timeout.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question