Loading... ```cpp ; 连接SMTP服务器 SMTP := ComObjCreate("CDO.Message") SMTP.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") := 2 SMTP.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") := "SMTP服务器地址" SMTP.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") := 25 ; SMTP服务器端口,一般为25 SMTP.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusername") := "发件人账号" SMTP.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendpassword") := "发件人密码" SMTP.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") := 1 SMTP.Configuration.Fields.Update() ; 设置邮件信息 SMTP.Subject := "邮件主题" SMTP.From := "发件人邮箱地址" SMTP.To := "收件人邮箱地址" SMTP.TextBody := "邮件内容" ; 发送邮件 SMTP.Send() ``` 最后修改:2023 年 03 月 02 日 © 允许规范转载 打赏 赞赏作者 支付宝微信 赞 0 如果觉得我的文章对你有用,请随意赞赏
8 条评论
这篇文章不错!
字里行间流露出真挚的情感,让人感同身受,共鸣不已。
作者以简洁明了的语言,传达了深刻的思想和情感。
创新略显不足,可尝试引入多元视角。
跳出常规思维,角度独特,令人耳目一新。
每一个段落都紧密相连,逻辑清晰,展现了作者高超的写作技巧。
哈哈哈,写的太好了https://www.lawjida.com/
支持多种语言,不仅有中文文章,还有很多外文资讯,可以扩展视野。