how can I send the error message to the user by email?

D

DaVinci

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

}

how can I implements the function?

any suggestion is apprecitated.
thanks very much
 
R

ranjmis

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

}

how can I implements the function?

any suggestion is apprecitated.
thanks very much


The problem is more related to network programming so better post in
appropriate group

<suggestion>
you need to interact with a SMTP server through your program
</suggestion>
 
K

Keith Thompson

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

}

how can I implements the function?

There is no portable way to do this. (C implementations exist on
systems that don't even have networking, let alone e-mail.) You'll
need to ask in a newsgroup that's specific to your system.
 

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

No members online now.

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,144
Latest member
KetoBaseReviews
Top