Reputation: 247
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
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