zeeshan mughal zeeshan mughal - 1 year ago 94
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.

Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download