Click here to Skip to main content
15,897,187 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Currentley i'm using visualstudio-2010
Posted

1 solution

Windows provides MAPI (Messaging Application Program Interface) for this. Start at the MAPI Programming Overview[^] in the MSDN. You may also search the net for some examples using the keywords 'mapi c++ examples'.

When using MFC, you can use CDocument::OnFileSendMail() to send the active document as mail attachment. The source code of this function may be also used as base for your own function.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900