Link to home
Start Free TrialLog in
Avatar of LizardKing
LizardKing

asked on

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,"mailto:email@account.com?subject=Configuration 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

Thanks
Avatar of nietod
nietod

You mean a way other than MAPI?  MAPI is for this....
Avatar of LizardKing

ASKER

Edited text of question.
ASKER CERTIFIED SOLUTION
Avatar of mikeblas
mikeblas

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial