資源簡介
VC開發實現的SMTP發送郵件,支持附件,發送多用戶。很實用。

代碼片段和文件信息
//?MySmtp.cpp?:?Defines?the?class?behaviors?for?the?application.
//
#include?“stdafx.h“
#include?“MySmtp.h“
#include?“MySmtpDlg.h“
#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
//?CMySmtpApp
BEGIN_MESSAGE_MAP(CMySmtpApp?CWinApp)
//{{AFX_MSG_MAP(CMySmtpApp)
//?NOTE?-?the?ClassWizard?will?add?and?remove?mapping?macros?here.
//????DO?NOT?EDIT?what?you?see?in?these?blocks?of?generated?code!
//}}AFX_MSG
ON_COMMAND(ID_HELP?CWinApp::onhelp)
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
//?CMySmtpApp?construction
CMySmtpApp::CMySmtpApp()
{
//?TODO:?add?construction?code?here
//?Place?all?significant?initialization?in?InitInstance
}
/////////////////////////////////////////////////////////////////////////////
//?The?one?and?only?CMySmtpApp?object
CMySmtpApp?theApp;
/////////////////////////////////////////////////////////////////////////////
//?CMySmtpApp?initialization
BOOL?CMySmtpApp::InitInstance()
{
AfxEnableControlContainer();
//?Standard?initialization
//?If?you?are?not?using?these?features?and?wish?to?reduce?the?size
//??of?your?final?executable?you?should?remove?from?the?following
//??the?specific?initialization?routines?you?do?not?need.
#ifdef?_AFXDLL
Enable3dControls(); //?Call?this?when?using?MFC?in?a?shared?DLL
#else
Enable3dControlsStatic(); //?Call?this?when?linking?to?MFC?statically
#endif
CMySmtpDlg?dlg;
m_pMainWnd?=?&dlg;
int?nResponse?=?dlg.DoModal();
if?(nResponse?==?IDOK)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?OK
}
else?if?(nResponse?==?IDCANCEL)
{
//?TODO:?Place?code?here?to?handle?when?the?dialog?is
//??dismissed?with?Cancel
}
//?Since?the?dialog?has?been?closed?return?FALSE?so?that?we?exit?the
//??application?rather?than?start?the?application‘s?message?pump.
return?FALSE;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????49152??2007-03-04?05:25??MySmtp\MySmtp.exe
?????文件??????36888??2007-03-04?05:24??MySmtp\src\MySmtp.aps
?????文件???????2490??2007-03-04?05:33??MySmtp\src\MySmtp.clw
?????文件???????2063??2007-02-28?21:18??MySmtp\src\MySmtp.cpp
?????文件???????4800??2007-03-02?20:51??MySmtp\src\MySmtp.dsp
?????文件????????537??2007-02-28?21:18??MySmtp\src\MySmtp.dsw
?????文件???????1324??2007-02-28?21:18??MySmtp\src\MySmtp.h
?????文件??????82944??2007-03-04?05:33??MySmtp\src\MySmtp.ncb
?????文件??????49664??2007-03-04?05:33??MySmtp\src\MySmtp.opt
?????文件???????2619??2007-03-04?05:25??MySmtp\src\MySmtp.plg
?????文件???????7125??2007-03-04?05:24??MySmtp\src\MySmtp.rc
?????文件???????8230??2007-03-04?05:27??MySmtp\src\MySmtpDlg.cpp
?????文件???????1651??2007-03-02?21:41??MySmtp\src\MySmtpDlg.h
?????文件???????3579??2007-02-28?21:18??MySmtp\src\ReadMe.txt
?????文件???????1078??2007-02-28?21:18??MySmtp\src\res\MySmtp.ico
?????文件????????398??2007-02-28?21:18??MySmtp\src\res\MySmtp.rc2
?????目錄??????????0??2007-02-28?21:18??MySmtp\src\res
?????文件???????1420??2007-03-04?05:21??MySmtp\src\resource.h
?????文件????????208??2007-02-28?21:18??MySmtp\src\StdAfx.cpp
?????文件???????1054??2007-02-28?21:18??MySmtp\src\StdAfx.h
?????文件???????3445??2007-03-04?03:03??MySmtp\src\Zba
?????文件???????1147??2007-03-04?03:03??MySmtp\src\Zba
?????文件???????6098??2007-03-03?02:05??MySmtp\src\ZFileDialog.cpp
?????文件???????2156??2007-03-03?02:06??MySmtp\src\ZFileDialog.h
?????文件???????7564??2007-03-04?05:32??MySmtp\src\ZSmtp.cpp
?????文件???????2503??2007-03-04?05:32??MySmtp\src\ZSmtp.h
?????文件???????2023??2007-02-27?22:38??MySmtp\src\ZString.cpp
?????文件???????1165??2007-02-27?22:38??MySmtp\src\ZString.h
?????文件???????9643??2007-03-01?03:25??MySmtp\src\ZSysInfo.cpp
?????文件???????3084??2007-02-27?22:38??MySmtp\src\ZSysInfo.h
............此處省略6個文件信息
評論
共有 條評論