本文整理自网络,侵删。
var smtp: TIdSMTP; MgeSend: TIdMessage;
procedure TForm1.Button1Click(Sender: TObject);begin SMTP.Host:='smtp.163.com'; smtp.Username:='xxxx@163.com'; smtp.Password:='paswrd'; smtp.Port:=25; smtp.Connect(); MgeSend.Recipients.EMailAddresses:='xxxx@qq.com'; MgeSend.From.Text :='xxxx@163.com'; MgeSend.Subject:='test'; MgeSend.Body.Text:='发邮件测试'; SMTP.Authenticate; Smtp.Send(mgeSend);end;
相关阅读 >>
Delphi tms web core js callproc
Delphi mailurlmaybeinvalid 检测邮箱地址有效性
Delphixe4 版本中,已针对移动平台 引入了 arc 模型
更多相关阅读请进入《Delphi》频道 >>