Z
zhangjin
Unregistered / Unconfirmed
GUEST, unregistred user!
with IdMessage_send do
begin
Body.Assign(Memo_content.Lines);
From.Text := Trim(Edit_smptUserid.Text);
Recipients.EMailAddresses := Trim(Edit_to.Text);//--正确的地址
Subject := Trim(Edit_subject.Text);
//BCCList.EMailAddresses:=Trim(Edit_Bcc.Text);
end;
try
IdSMTP.Send(IdMessage_send);
IdSMTP.Disconnect;
ShowInfo('邮件发送成功!');
except
on E:Exception do
ShowInfo('邮件发送失败:'+E.Message);
end;
已经设置:
host=‘smpt.163.com’
port:=25
username:='xxx'//正确
password:='xxx'//正确
错误提示:收信人地址非法
问题会在什么地方呢?
begin
Body.Assign(Memo_content.Lines);
From.Text := Trim(Edit_smptUserid.Text);
Recipients.EMailAddresses := Trim(Edit_to.Text);//--正确的地址
Subject := Trim(Edit_subject.Text);
//BCCList.EMailAddresses:=Trim(Edit_Bcc.Text);
end;
try
IdSMTP.Send(IdMessage_send);
IdSMTP.Disconnect;
ShowInfo('邮件发送成功!');
except
on E:Exception do
ShowInfo('邮件发送失败:'+E.Message);
end;
已经设置:
host=‘smpt.163.com’
port:=25
username:='xxx'//正确
password:='xxx'//正确
错误提示:收信人地址非法
问题会在什么地方呢?