N
NerverKnow
Unregistered / Unconfirmed
GUEST, unregistred user!
代码如下:
SMTP.Host:='smtp.163.com';
smtp.Username:='abc@163.com';
smtp.Password:='123';
smtp.Port:=25;
smtp.Connect();
MgeSend.
Recipients.EMailAddresses:='ad22@qq.com';
MgeSend.
From.Text :='dd@gmail.com';
MgeSend.
Subject:='test';
MgeSend.
Body.Text:='发邮件测试';
SMTP.Authen
ticate;
Smtp.Send(mgeSend);
上面的代码运行时会报错,错误代码是:
you are authorized to send email,authoication required.
而把下面这两个的值改成相同就可以发送了。
smtp.Username:='abc@163.com';
MgeSend.
From.Text :='abc@163.com';
原来是'dd@gmail.com';
请各位帮一下忙,看是什么问题?谢了
SMTP.Host:='smtp.163.com';
smtp.Username:='abc@163.com';
smtp.Password:='123';
smtp.Port:=25;
smtp.Connect();
MgeSend.
Recipients.EMailAddresses:='ad22@qq.com';
MgeSend.
From.Text :='dd@gmail.com';
MgeSend.
Subject:='test';
MgeSend.
Body.Text:='发邮件测试';
SMTP.Authen
ticate;
Smtp.Send(mgeSend);
上面的代码运行时会报错,错误代码是:
you are authorized to send email,authoication required.
而把下面这两个的值改成相同就可以发送了。
smtp.Username:='abc@163.com';
MgeSend.
From.Text :='abc@163.com';
原来是'dd@gmail.com';
请各位帮一下忙,看是什么问题?谢了