zeeshan mughal zeeshan mughal - 6 months ago 42
C++ Question

how to send email using c++ without specifying smtp server

I want to send email over SMTP using c++ code, how should I handle it in generic way that a random user don't have to handle SMTP server specification? (Windows)

Without specification means user should not have to write IP address of SMTP server etc.


Install an smtp relay server on the same host where the code runs and set the SMTP server in the code to 'localhost'.