> 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.

"Only stupids don't ask" - Teatcher Bajwa :-)

> 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, this doesn't seem to work, and after conducting
> what I feel
> to be an exhaustive search of the web, I'm seeing nothing on the subject.

Alex,

it's a developent issue, not targeted to this community, but I think I can
help you. My apologies to those who feel this message breakes the list's
"spirit".

> Has anyone ever sent mail using a C++ program? If so, I'd
> appreciate either
> some tips or a pointer to a URL discussing it.

This kind of action is much better done with std::popen(). I think you are
confused with STL (I dislike it).

Regards,
Wagner.

Reply via email to