how to sendmail

D

DaVinci

linux debian 2.6.16
how can I send the error message to the user by email?
such as
void sendmail(std::string errormsg ,std::string email)
{

}

how can I implements the function?

any suggestion is apprecitated.
thanks very much
 
N

Noah Roberts

DaVinci said:
linux debian 2.6.16
how can I send the error message to the user by email?
such as
void sendmail(std::string errormsg ,std::string email)
{

}

how can I implements the function?

The easiest way is to use the standard call system() to run an external
program to do it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,045
Latest member
DRCM

Latest Threads

Top