Re: OT: Sending Mail with C++

2001-05-02 Thread Peter van Dijk
On Wed, May 02, 2001 at 03:04:17PM +, Alex Le Fevre wrote: > > 2) If it gets far enough, are you capturing the exit code of > > /usr/bin/sendmail (or /var/qmail/bin/qmail-inject, for that matter)? > There is no output, at all. I get no error messages of any kind. He said exit code, not outp

Re: OT: Sending Mail with C++

2001-05-02 Thread Alex Le Fevre
> Please supply more information: > > 1) At what point is your program failing? The program itself doesn't seem to fail. I put a cout statement after my last line of code, and it pops up just fine. > 2) If it gets far enough, are you capturing the exit code of > /usr/bin/sendmail (or /var/qm

Re: OT: Sending Mail with C++

2001-05-02 Thread Charles Cazabon
Alex Le Fevre <[EMAIL PROTECTED]> wrote: > > I've learned that in Perl, sending an e-mail through the system is as simple > as outputting to /usr/bin/sendmail -t. I figured that doing this with C++ > would be just as simple; I'd just open an ofstream with ios::app and print > to it. However, t

OT: Sending Mail with C++

2001-05-02 Thread Alex Le Fevre
I've seen the wars going on the last couple of days with people being tired of answering stupid questions, so my apologies if this appears to be such a question. I've learned that in Perl, sending an e-mail through the system is as simple as outputting to /usr/bin/sendmail -t. I figured that d