I wrote a program that looks at a file's properties and generates a little file in the htdocs of my apache directory.
I want to add an option to e-mail a link to the file. Does anyone know how to access sendmail from a c program other than system("mail [email protected]"); I would like to use actual system calls or C functions, but I don't know what they are or even what libraries they are in. I tried some google'ing, but I couldn't get anything on C, just PHP, ASP, and Perl. I even browsed through the source of Mutt, but it was a little more involved than I needed.
I want to add an option to e-mail a link to the file. Does anyone know how to access sendmail from a c program other than system("mail [email protected]"); I would like to use actual system calls or C functions, but I don't know what they are or even what libraries they are in. I tried some google'ing, but I couldn't get anything on C, just PHP, ASP, and Perl. I even browsed through the source of Mutt, but it was a little more involved than I needed.