飞 飞来石 Unregistered / Unconfirmed GUEST, unregistred user! 2002-07-07 #1 请问,如何使用TNMSMTP组件发送邮件,请给出例子。请问其中"FromAddress"应怎样设置。 如:从本地发送邮件到mymailbox@sina.com
P Pipi. Unregistered / Unconfirmed GUEST, unregistred user! 2002-07-07 #2 比如你想在对方显示信是 xxx@abc.com 发出的 NMSTMP1.PostMessage.FromAddress:='xxx@abc.com';
G Go_gou Unregistered / Unconfirmed GUEST, unregistred user! 2002-07-12 #3 try smtp.host:=strsend; smtp.postmessage.FromAddress:='gouzy@sunv.com'; smtp.PostMessage.FromName :='gouzy'; smtp.UserID :=strusername; smtp.postmessage.ToAddress.text:=edtsend.text; smtp.PostMessage.Subject :=edtmain.text; smtp.PostMessage.Body.Add(mmsend.Lines.Text); btnsend.Enabled :=false; btnstop.Enabled :=true; smtp.Connect; except on eaccessviolation do showmessage('asdfasdfasdf'); end;
try smtp.host:=strsend; smtp.postmessage.FromAddress:='gouzy@sunv.com'; smtp.PostMessage.FromName :='gouzy'; smtp.UserID :=strusername; smtp.postmessage.ToAddress.text:=edtsend.text; smtp.PostMessage.Subject :=edtmain.text; smtp.PostMessage.Body.Add(mmsend.Lines.Text); btnsend.Enabled :=false; btnstop.Enabled :=true; smtp.Connect; except on eaccessviolation do showmessage('asdfasdfasdf'); end;
S soonstar Unregistered / Unconfirmed GUEST, unregistred user! 2003-03-26 #6 http://www.delphibbs.com/delphibbs/dispq.asp?lid=1702834
春 春意 Unregistered / Unconfirmed GUEST, unregistred user! 2003-03-26 #7 发信给我,我这儿自编了一个验证smtp的发送程序……… yanchunyi@163.com