I have seen many tutorials with confusing functions that are difficult to translate and understand. I am also not looking for a GUI implementation. I am looking for a basic C or C++ program that has basic(C-file) libraries and not (.exe libraries) to include, that can send a email with a SMTP or equivalent protocol.

The program should except simple parameters like from-email, to-email, email-subject, email-body text, host, email-username, email-password.

I have experience with SMTP with Java programming, here is example link that uses few library imports that are also easy to find online to download, the link is: https://www.tutorialspoint.com/java/...ding_email.htm . Any help will be appreciated with C or C++ programming code.