Need to send email via C
Hello!
I would appreciate any help in this matter. I need to make a function that, receiving a destination address, subject and body, sends an email.
It seems one of the possibilities is invoking, using the popen function, the mail client and then passing to it all the necessary components, which is making some troubles.
Is there a "cleaner" way of accomplishing this, like accessing some fuction from some api or anything like that?
Thanks a lot!
|