JvMail 组件运行不正常或我搞砸了。
procedure TForm1.RzURLLabel1Click(Sender: TObject);
begin
if cxLookUpComboBox1.Text ='' then
abort else
with JvMail1.SimpleMAPI do
begin
JvMail1.Clear;
JvMail1.Recipient.AddRecipient('smtp:mymail@gmail.com');
JvMail1.Subject := 'Password lost ';
JvMail1.Body.Text := 'Request password :' +#13#10+ cxLookUpComboBox1.Text +#13#10+ AdvOfficeStatusBar1.Panels[4].Text ;
JvMail1.SendMail;
end
end;
除非我在邮件地址前面加上前缀“smtp:”,否则我的邮件不会被发送。有想法该怎么解决这个吗 ?