Sending an email from an VC++ 6 Dialog based MFC program

I am currently writng a program which creates a configuration file e.g config.txt and stores it on a users machine. What I want to do is send this file via email to an email account. I know there is MAPI functions etc. to do this but does anyone know of a simple way to do this other than MAPI

Also I tried using ShellExecute to open the default email as follows
ShellExecute(dlg,NULL," File","NULL",NULL,SW_SHOWNORMAL);

However this only sets the send to: and subject up not the attachment is there a way to attach the file with shellexecute

Any hints or sample code would be great

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.

You mean a way other than MAPI?  MAPI is for this....
LizardKingAuthor Commented:
Edited text of question.
No. The mailto URI provides no way to specify an attachment. You need to use MAPI, or use some other way to control your mail program, or use SMTP directly.

..B ekiM

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