Click here to Skip to main content
15,881,852 members
Articles / Programming Languages / C++

SendTo Mail Recipient

Rate me:
Please Sign up or sign in to vote.
4.87/5 (25 votes)
31 Mar 20033 min read 396.5K   2K   45  
Programmatically use the SendTo mail recipient shortcut
This article provides a code snippet in order to programmatically send one or more files to the mail recipient, mimicking the SendTo mail recipient shell extension. I have heard many people searching for this feature, and actually I thought that, as there doesn't seem to be such source code posted on the net, I could just as well post it.
// stdafx.h : include file for standard system include files,
//  or project specific include files that are used frequently, but
//      are changed infrequently
//

#if !defined(AFX_STDAFX_H__D210AEAF_F918_4301_BDC0_0C5F85862D83__INCLUDED_)
#define AFX_STDAFX_H__D210AEAF_F918_4301_BDC0_0C5F85862D83__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#define WIN32_LEAN_AND_MEAN		// Exclude rarely-used stuff from Windows headers

#include <stdio.h>

// TODO: reference additional headers your program requires here

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_STDAFX_H__D210AEAF_F918_4301_BDC0_0C5F85862D83__INCLUDED_)

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


Written By
France France
Addicted to reverse engineering. At work, I am developing business intelligence software in a team of smart people (independent software vendor).

Need a fast Excel generation component? Try xlsgen.

Comments and Discussions