JvMail(JEDI)组件未发送邮件 [英] JvMail (JEDI) component not sending mail

查看:105
本文介绍了JvMail(JEDI)组件未发送邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

JvMail组件运行不正常,或者我正在弄乱
东西。

JvMail component is not functioning right or I am messing something up.

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:,否则我的邮件不会发送。
关于如何解决此问题的任何想法?

My mail does not get sent unless I put the prefix 'smtp:' infront of the mail adress. Any ideas on how to fix this ?

推荐答案

文档很清楚


注释:

参数地址指定的地址格式为 [地址
类型] [电子邮件地址]
。有效地址的示例是
传真:206-555-1212和SMTP:M@X.COM。

The format of an address specified by parameter Address is [address type][e-mail address]. Examples of valid addresses are FAX:206-555-1212 and SMTP:M@X.COM.

说明:

以下代码将收件人添加到收件人列表中:
JvMail1.Recipient.AddRecipient('SMTP:someone@somedomain.com' ,'Some one');

The following code adds a recipient to the Recipient list: JvMail1.Recipient.AddRecipient('SMTP:someone@somedomain.com', 'Some one');

这篇关于JvMail(JEDI)组件未发送邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆