vladimar
vladimar

Reputation: 247

Sending email from C++

I have a some server which receives connections from clients. So, what is the elemental way to send email? (without using any non-standard libraries).

And one more question: if I have a complete php script to send email can I execute it from my C++ programm?

Upvotes: 0

Views: 568

Answers (1)

Alan
Alan

Reputation: 46823

C++ doesn't have a standard library for communicating via SMTP. You may find a non-standard library that provides this functionality.

If you need to send an email in C++ without the use of a thirdparty library, you will need to write functions that can send SMTP commands through a socket to whatever mail server you wish to use.

Upvotes: 3

Related Questions