• C

Sending mail in C/PRO*C in a UNIX Environment

I am using PROC*C, UNIX and ORACLE.  I have already writen a PRO*C program to fetch data from ORACLE and generate a Text file. I would like to use the mail feature inside C  program to send email with the contents of the text file.
  Any solutions ?  Need more detailed reply.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

system("/usr/lib/sendmail kkolya@experts-exchange.com <text.file");

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
kkolyaAuthor Commented:
How is the performance of sending email in C program using system command. ? What is the fast way to send email when there is processing and data gathering to create email body using PRO*C. This mass email sending depending on the data.
system() does spawn an extra command shell,
It could be more efficient to pipe directly to a sendmail process instead of using a shell to send a file to it.
(By the way, if you have followup questions it is usually better to keep the question open until they are resolved.
You may get the benefit of other people contributing to the answer)
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.