A
A
AramBaram2021-07-31 02:32:55
C++ / C#
AramBaram, 2021-07-31 02:32:55

How to send emails via c++?

How to send emails via c++?
I looked on the Internet, there are some huge codes.
Isn't it possible to write something easier?
Or is it easier to use sharp?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
rPman, 2021-07-31
@rPman

google: c++ lib email
will open up a world of ready-made libraries for working with mail, choose your environment and compiler for every taste.
c++ is such a language that programs on it are quite verbose,
ps the first result from google https://github.com/karastojko/mailio

message msg;
msg.from(mail_address("mailio library", "[email protected]"));
msg.add_recipient(mail_address("mailio library", "[email protected]"));
msg.subject("smtps simple message");
msg.content("Hello, World!");

smtps conn("smtp.gmail.com", 587);
conn.authenticate("[email protected]", "mailiopass", smtps::auth_method_t::START_TLS);
conn.submit(msg);
is it wordy?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question