C++ CSmtp 发送邮件 源码+示例

上传者: lvsaint | 上传时间: 2021-03-26 11:13:10 | 文件大小: 1.63MB | 文件类型: ZIP
C++ CSmtp 发送邮件 支持SSL和TLS,如可以使用Gmail账户发送邮件 纯C++,同时支持Windows和Linux 简单易用的API 本例可以直接用Visual Studio 2010加载 CSmatp mail; mail.SetLogin("***"); mail.SetPassword("***"); mail.SetSenderName("User"); mail.SetSenderMail("user@domain.com"); mail.SetReplyTo("user@domain.com"); mail.SetSubject("The message"); mail.AddRecipient("friend@domain2.com"); mail.SetXPriority(XPRIORITY_NORMAL); mail.SetXMailer("The Bat! (v3.02) Professional"); mail.AddMsgLine("Hello,"); mail.AddMsgLine("..."); mail.AddMsgLine("How are you today?"); mail.AddMsgLine("Regards"); mail.ModMsgLine(5,"regards"); mail.AddMsgLine("User"); mail.AddAttachment("../test1.jpg"); mail.AddAttachment("c:\\test2.exe"); mail.Send();

文件下载

资源详情

[{"title":"( 83 个子文件 1.63MB ) C++ CSmtp 发送邮件 源码+示例","children":[{"title":"CSmtpSSL","children":[{"title":"main.cpp <span style='color:#111;'> 1.65KB </span>","children":null,"spread":false},{"title":"base64.cpp <span style='color:#111;'> 3.75KB </span>","children":null,"spread":false},{"title":"base64.h <span style='color:#111;'> 190B </span>","children":null,"spread":false},{"title":"CSmtp.vcxproj.filters <span style='color:#111;'> 1.44KB </span>","children":null,"spread":false},{"title":"md5.h <span style='color:#111;'> 4.34KB </span>","children":null,"spread":false},{"title":"CSmtp.h <span style='color:#111;'> 6.36KB </span>","children":null,"spread":false},{"title":"CSmtp.cpp <span style='color:#111;'> 64.82KB </span>","children":null,"spread":false},{"title":"md5.cpp <span style='color:#111;'> 13.31KB </span>","children":null,"spread":false},{"title":"CSmtp.suo <span style='color:#111;'> 10.50KB </span>","children":null,"spread":false},{"title":"CSmtp.vcxproj.user <span style='color:#111;'> 143B </span>","children":null,"spread":false},{"title":"openssl","children":[{"title":"inc32","children":[{"title":"openssl","children":[{"title":"pqueue.h <span style='color:#111;'> 3.44KB </span>","children":null,"spread":false},{"title":"ossl_typ.h <span style='color:#111;'> 6.56KB </span>","children":null,"spread":false},{"title":"des.h <span style='color:#111;'> 10.48KB </span>","children":null,"spread":false},{"title":"pkcs12.h <span style='color:#111;'> 12.38KB </span>","children":null,"spread":false},{"title":"evp.h <span style='color:#111;'> 37.73KB </span>","children":null,"spread":false},{"title":"dso.h <span style='color:#111;'> 15.87KB </span>","children":null,"spread":false},{"title":"hmac.h <span style='color:#111;'> 4.33KB </span>","children":null,"spread":false},{"title":"ec.h <span style='color:#111;'> 20.89KB </span>","children":null,"spread":false},{"title":"pq_compat.h <span style='color:#111;'> 6.07KB </span>","children":null,"spread":false},{"title":"dsa.h <span style='color:#111;'> 11.40KB </span>","children":null,"spread":false},{"title":"rsa.h <span style='color:#111;'> 19.11KB </span>","children":null,"spread":false},{"title":"asn1t.h <span style='color:#111;'> 27.42KB </span>","children":null,"spread":false},{"title":"idea.h <span style='color:#111;'> 4.37KB </span>","children":null,"spread":false},{"title":"md5.h <span style='color:#111;'> 4.61KB </span>","children":null,"spread":false},{"title":"safestack.h <span style='color:#111;'> 139.17KB </span>","children":null,"spread":false},{"title":"ocsp.h <span style='color:#111;'> 23.50KB </span>","children":null,"spread":false},{"title":"crypto.h <span style='color:#111;'> 23.65KB </span>","children":null,"spread":false},{"title":"krb5_asn.h <span style='color:#111;'> 7.46KB </span>","children":null,"spread":false},{"title":"cast.h <span style='color:#111;'> 4.35KB </span>","children":null,"spread":false},{"title":"asn1.h <span style='color:#111;'> 47.63KB </span>","children":null,"spread":false},{"title":"ripemd.h <span style='color:#111;'> 4.25KB </span>","children":null,"spread":false},{"title":"rc4.h <span style='color:#111;'> 3.72KB </span>","children":null,"spread":false},{"title":"engine.h <span style='color:#111;'> 37.63KB </span>","children":null,"spread":false},{"title":"blowfish.h <span style='color:#111;'> 5.05KB </span>","children":null,"spread":false},{"title":"ssl23.h <span style='color:#111;'> 3.66KB </span>","children":null,"spread":false},{"title":"comp.h <span style='color:#111;'> 1.93KB </span>","children":null,"spread":false},{"title":"stack.h <span style='color:#111;'> 4.31KB </span>","children":null,"spread":false},{"title":"ebcdic.h <span style='color:#111;'> 540B </span>","children":null,"spread":false},{"title":"des_old.h <span style='color:#111;'> 17.81KB </span>","children":null,"spread":false},{"title":"rc2.h <span style='color:#111;'> 4.30KB </span>","children":null,"spread":false},{"title":"pkcs7.h <span style='color:#111;'> 15.95KB </span>","children":null,"spread":false},{"title":"ui_compat.h <span style='color:#111;'> 3.36KB </span>","children":null,"spread":false},{"title":"ssl3.h <span style='color:#111;'> 22.08KB </span>","children":null,"spread":false},{"title":"conf.h <span style='color:#111;'> 9.26KB </span>","children":null,"spread":false},{"title":"dtls1.h <span style='color:#111;'> 6.17KB </span>","children":null,"spread":false},{"title":"symhacks.h <span style='color:#111;'> 20.21KB </span>","children":null,"spread":false},{"title":"txt_db.h <span style='color:#111;'> 4.20KB </span>","children":null,"spread":false},{"title":"store.h <span style='color:#111;'> 25.86KB </span>","children":null,"spread":false},{"title":"err.h <span style='color:#111;'> 12.65KB </span>","children":null,"spread":false},{"title":"md4.h <span style='color:#111;'> 4.61KB </span>","children":null,"spread":false},{"title":"md2.h <span style='color:#111;'> 3.87KB </span>","children":null,"spread":false},{"title":"dh.h <span style='color:#111;'> 8.45KB </span>","children":null,"spread":false},{"title":"ecdsa.h <span style='color:#111;'> 10.33KB </span>","children":null,"spread":false},{"title":"ui.h <span style='color:#111;'> 16.03KB </span>","children":null,"spread":false},{"title":"sha.h <span style='color:#111;'> 7.22KB </span>","children":null,"spread":false},{"title":"x509_vfy.h <span style='color:#111;'> 20.29KB </span>","children":null,"spread":false},{"title":"e_os2.h <span style='color:#111;'> 9.41KB </span>","children":null,"spread":false},{"title":"opensslv.h <span style='color:#111;'> 3.66KB </span>","children":null,"spread":false},{"title":"aes.h <span style='color:#111;'> 5.55KB </span>","children":null,"spread":false},{"title":"rand.h <span style='color:#111;'> 6.10KB </span>","children":null,"spread":false},{"title":"ssl.h <span style='color:#111;'> 82.35KB </span>","children":null,"spread":false},{"title":"objects.h <span style='color:#111;'> 32.61KB </span>","children":null,"spread":false},{"title":"pem.h <span style='color:#111;'> 27.59KB </span>","children":null,"spread":false},{"title":"bio.h <span style='color:#111;'> 30.10KB </span>","children":null,"spread":false},{"title":"lhash.h <span style='color:#111;'> 7.25KB </span>","children":null,"spread":false},{"title":"bn.h <span style='color:#111;'> 32.78KB </span>","children":null,"spread":false},{"title":"kssl.h <span style='color:#111;'> 5.79KB </span>","children":null,"spread":false},{"title":"buffer.h <span style='color:#111;'> 4.46KB </span>","children":null,"spread":false},{"title":"tls1.h <span style='color:#111;'> 18.94KB </span>","children":null,"spread":false},{"title":"x509.h <span style='color:#111;'> 47.31KB </span>","children":null,"spread":false},{"title":"ssl2.h <span style='color:#111;'> 10.46KB </span>","children":null,"spread":false},{"title":"x509v3.h <span style='color:#111;'> 29.38KB </span>","children":null,"spread":false},{"title":"conf_api.h <span style='color:#111;'> 3.98KB </span>","children":null,"spread":false},{"title":"tmdiff.h <span style='color:#111;'> 4.02KB </span>","children":null,"spread":false},{"title":"asn1_mac.h <span style='color:#111;'> 18.51KB </span>","children":null,"spread":false},{"title":"pem2.h <span style='color:#111;'> 2.80KB </span>","children":null,"spread":false},{"title":"opensslconf.h <span style='color:#111;'> 7.15KB </span>","children":null,"spread":false},{"title":"ecdh.h <span style='color:#111;'> 4.50KB </span>","children":null,"spread":false},{"title":"obj_mac.h <span style='color:#111;'> 125.15KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"out32","children":[{"title":"libeay32.lib <span style='color:#111;'> 3.79MB </span>","children":null,"spread":false},{"title":"ssleay32.lib <span style='color:#111;'> 677.38KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"CSmtp.vcxproj <span style='color:#111;'> 8.64KB </span>","children":null,"spread":false},{"title":"CSmtp.sln <span style='color:#111;'> 876B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

  • franciszx :
    不错,VS2015可以修改后发送邮件。
    2019-11-02
  • 叫我sensei :
    www.codeproject.com里有,有没有人解释一下,登录密码是什么?
    2018-07-25
  • vxgu86 :
    提示缺少文件&lt;openssl/e_os2.h&gt; “openssl/comp.h” 等
    2016-12-18
  • zaiyuan2003 :
    很不错的源代码,非常感谢,不过分值有些高
    2015-09-06
  • spaceoflove :
    很不错的demo源代码,分数有点高
    2015-05-26
  • rocly :
    不错,很不错的资源,有帮助
    2014-08-16
  • xwyzn :
    非常棒的例子,非常全面。对我的启发很大。
    2014-06-08
  • zxh_2012 :
    虽然感觉上对,但还是搞不懂,VC6不会用
    2014-05-20
  • jupiterwangq :
    不是很好用,但是还是从里面学到一些东西!
    2014-04-24
  • jokedoog :
    2010的工程 ,和我要找的不一样啊。
    2014-04-13

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明