帮人提问。如何用Indy的IdSMTP控件实现发邮件的功能?

TopCat 2003-03-03 11:12:32
有没有人愿意帮我用IdSTMP来实现发邮件的功能,就是实现最简单的暗发含内容的邮件功能,如果有愿意者发消息到我的邮箱,jason@365rainbow.com

-------------------

以上是我一个网友的提问,Indy控件我自己没有用过,而且现在开发任务相当紧,也没有时间帮他。如果谁有相关代码请帮一下忙吧。谢了。
...全文
114 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
itperson 2003-03-03
  • 打赏
  • 举报
回复
同意楼上!!
whitelion 2003-03-03
  • 打赏
  • 举报
回复
要通过认证
加上

idSmtp1.AuthenticationType := atLogin;
whitelion 2003-03-03
  • 打赏
  • 举报
回复
with IdMessage1 do
begin
Body.Text:='asdfasdfasdfasdf';
From.Text:='zhangchao7622@sina.com';
Recipients.EMailAddresses:='fanxunhao82422@sina.com';
Subject:='asdfasdf';
ReceiptRecipient.Text:='';
end;
IdSMTP1.Host:='smtp.sina.com.cn';
IdSMTP1.Port:=25;
IdSMTP1.UserId:='zhangchao7622';
IdSMTP1.Password:='zhangchao';
IdSMTP1.Connect;
try
IdSMTP1.Send(IdMessage1);
Application.MessageBox('asdfasdf','asdfasdf',MB_OK);
finally
IdSMTP1.Disconnect;
end;

13,822

社区成员

发帖
与我相关
我的任务
社区描述
C++ Builder相关内容讨论区
社区管理员
  • 基础类社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧