========================================================================
ATL COM Object : SimpleEmailClientX 1.5
========================================================================
Author: Emmanuel KARTMANN <emmanuel@kartmann.org>
Creation Date: November 28th, 1998
Last Modification Date: October 12, 2001
OVERVIEW
========
This ATL COM component provides very simple Internet email functionality (SMTP).
FEATURES
========
* implements the basics of SMTP, as defined in RFC821 and RFC822
* sends plain text email: no attachements, no MIME encoding.
* supports multiple recipients (separate email addresses with commas ',')
* supports multiple email servers (try next server if email cannot be delivered to a server)
* provides automatic detection of SMTP server (resolve MX record in the DNS, using COMponent SimpleDNSResolver)
* provides extended error information (ISupportErrorInfo and IErrorInfo are implemented)
* is safe for scripting (IObjectSafety is implemented),
* provides very small executable: 44 Ko (MinSize) to 144 Ko (MinDependency)
* requires no Graphical User Interface: the component can be used in non-GUI applications, like a Windows NT Service.
* runs on Windows 2000 (originally on NT 4.0, Windows 95 and Windows 98)
* compiles with VC++ 6.0 SP3
USAGE
=====
To use this component:
* create an instance of the component,
* call method SendEmail from interface ISimpleEmailClientX,
* handle errors (try/catch in C++)
SAMPLE CODE (VC++)
==================
#import "SimpleEmailClient.dll" no_namespace
ISimpleEmailClientXPtr pSimpleEmailClientX;
HRESULT hResult = CoInitialize(NULL);
hResult = pSimpleEmailClientX.CreateInstance("Emmanuel.SimpleEmailClientX.1");
hResult = pSimpleEmailClientX->SendEmail(_bstr_t("me@mydomain.com"),
_bstr_t("you@yourdomain.com"),
_bstr_t("My Subject"),
_bstr_t("My Text..."),
_bstr_t("myserver.domain.com"));
CoUninitialize();
Please refer to the test project in subdirectory "TestSimpleEmailClient" for a full example.
SAMPLE CODE (VBScript)
======================
Dim oSMTP
Set oSMTP = CreateObject("Emmanuel.SimpleEmailClientX.1")
oSMTP.SendEmail "me@mydomain.com", "you@yourdomain.com", "My Subject", "My Text...", "myserver.domain.com"
Please refer to the test HTML file for a full VBSsript example :
TestSimpleEmailClient/TestSimpleEmailClient.htm
IMPLEMENTATION
==============
This component relies on two MFC-related C++ class:
* CSimpleSocket: an extension of MFC class CSocket providing text and timer features
* CSimpleSMTPClient: a C++ class implementing a SMTP client.
You can integrate these classes in your application if you don't want to use the component.
If the COMponent "Emmanuel.SimpleDNSClient" is installed on your machine, it will be used to find the name of you SMTP server(s) as registered in the DNS. You will not need to provide a SMTP name as the 5th parameter of method SendEmail (just put an empty string). Please refer
to the SimpleDNSClient documentation (www.kartmann.org) for details.
TO DO LIST
==========
* Support attachments
* Support binary data (MIME encoding)
* Support additional SMTP headers (Reply-To, Cc, Bcc, etc...)
* Support ESMTP
没有合适的资源?快使用搜索试试~ 我知道了~
SMTP.zip_smtp_邮箱
共62个文件
h:14个
cpp:11个
bat:5个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 194 浏览量
2022-09-20
14:23:15
上传
评论
收藏 147KB ZIP 举报
温馨提示
实现向指定邮箱发邮件.希望可以给大家带去帮助
资源推荐
资源详情
资源评论
收起资源包目录
SMTP.zip (62个子文件)
SimpleEmailClient_src
CLEANUP.bat 272B
SimpleSMTPClient.h 10KB
SimpleEmailClient.rc 3KB
SimpleDNSClient.cpp 2KB
SimpleEmailClientX.cpp 6KB
Empty.zip 22B
Build_Doc.bat 33B
Kit
dlldata.c 855B
MAKE_SRC_ZIP.BAT 767B
Readme.htm 5KB
SimpleSocket.cpp 9KB
SimpleEmailClientX.h 3KB
SimpleEmailClient.cpp 4KB
MAKE_KIT.bat 2KB
Readme.txt 4KB
icon1.ico 766B
CSimpleSocket.html 18KB
SimpleEmailClient.def 242B
SimpleSocket.h 10KB
WindowsErrorText.h 2KB
SimpleDNSResolver.dll 72KB
WindowsErrorText.cpp 10KB
dlldatax.h 754B
SimpleEmailClientKit.dsp 2KB
SimpleEmailClient.dsp 9KB
SimpleEmailClient2.jpg 53KB
ReleaseMinDependency
SimpleEmailClient.h 9KB
SimpleDNSClient.h 902B
SimpleEmailClientps.mk 574B
versions.txt 1KB
SimpleEmailClient.html 5KB
SimpleEmailClient_p.c 12KB
keyweb.html 1KB
StdAfx.cpp 315B
resource.h 555B
SimpleEmailClient_i.c 1KB
logo.gif 2KB
StdAfx.h 1KB
SimpleSMTPClient.cpp 16KB
SimpleEmailClientps.def 259B
TestSimpleEmailClient
CLEANUP.bat 213B
Release
TestSimpleEmailClientDlg.h 2KB
res
TestSimpleEmailClient.rc2 413B
TestSimpleEmailClient.ico 1KB
TestSimpleEmailClient.dsp 5KB
TestSimpleEmailClient.cpp 3KB
WindowsErrorText.h 2KB
WindowsErrorText.cpp 5KB
TestSimpleEmailClientDlg.cpp 8KB
StdAfx.cpp 223B
resource.h 884B
StdAfx.h 1KB
TestSimpleEmailClient.rc 6KB
TestSimpleEmailClient.h 1KB
TestSimpleEmailClient.htm 2KB
Debug
ReadMe.txt 1KB
CSimpleSMTPClient.html 18KB
Debug
SimpleEmailClient1.jpg 30KB
ReleaseMinSize
SimpleEmailClient.dsw 2KB
SimpleEmailClient.idl 1KB
SimpleEmailClientX.rgs 712B
dlldatax.c 1KB
共 62 条
- 1
资源评论
林当时
- 粉丝: 100
- 资源: 1万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功