添加 ReplyRecipient 后未收到邮件
使用 Outlook for Microsoft Office 365 32 位和 Delphi XE8
我正在评估 Redemption.dll,因为 Windows 11 已阻止我的应用程序访问 Outlook。
我的 Outlook 配置了多个配置文件和商店,
我可以打开配置文件找到商店/帐户并可以发送/接收。
在一种组合中,我没有收到电子邮件。
问题是,
Mail.ReplyRecipients.Add('[email protected]');
如果我注释掉这一行,我会收到电子邮件,
在发送的文件夹中,我可以双击,然后单击回复,我会看到回复地址,但在(收件人的)收件箱中我什么也得不到。我扫描了所有 Outlook 项目,但无济于事。
相反,我确实收到了电子邮件。
我打算在完成评估后购买该产品。但这个功能很重要
procedure TForm61._Send(Profile, Sender, _To, _CC, _BCC, Subject, Body: String;
ReadReceiptRequested: Boolean; _Attachments: TArray<String>);
var
FolderFound: Boolean;
c, j, Count, k: Integer;
Session: IRDOSession;
Store: IRDOStore;
Drafts: IRDOFolder;
Recip: IRDORecipient;
MAil: IRDOMail;
IPMRoot: IRDOFolder;
ReplyRecip: IRDORecipient;
_name: String;
begin
Session:=CoRDOSession.Create;
Session.Logon(Profile,'', False, True,EmptyParam,EmptyParam);
Drafts:=Session.GetFolderFromPath('\\'+Sender+'\Inbox');
Mail:= Drafts.Items.Add(olMailItem);
Recip := Mail.Recipients.Add(_To);
Recip.type_:= olTo;
if not _CC.IsEmpty then
begin
Recip := Mail.Recipients.Add(_CC);
Recip.type_:= olCC;
end;
if not _BCC.IsEmpty then
begin
Recip := Mail.Recipients.Add(_BCC);
Recip.type_:= olBCC;
end;
// Recip.Resolve(EmptyParam, EmptyParam);
// ReplyRecip:=Mail.ReplyRecipients.Add('[email protected]');
Mail.ReplyRecipients.Add('[email protected]');
// ReplyRecip.Resolve(EmptyParam, EmptyParam);
for j:=0 to Length(_Attachments)- 1 do
Mail.Attachments.Add(_Attachments[j], EmptyParam, EmptyParam, EmptyParam);
Mail.Subject:=Subject;
Mail.ReadReceiptRequested:=ReadReceiptRequested;
Mail.HTMLBody:=Body;
if SignatureIndex>-1 then
begin
Signature:=Session.Signatures.Item(SignatureIndex+1); //noy zero-based
Signature.ApplyTo(Mail, False);
end;
Mail.OriginatorDeliveryReportRequested:=True;
Mail.Save;
Mail.Send;
end;
TIA
Ephraim
Using Outlook for Microsoft Office 365 32 bit and Delphi XE8
I am evaluation Redemption.dll as Windows 11 has blocked my application from accessing Outlook.
I have Outlook configure with multiple profiles and stores
I can open the profiles find the store/account and can send/receive.
In one combination I do not receive the email.
The issue is with
Mail.ReplyRecipients.Add('[email protected]');
if I comment this line out I receive the email
In the sent folder I can dblclick and by clicking reply I see the Reply Address but in the inbox (of the recipient) I get nothing. I scanned all Outlook items to no avail.
In the reverse direction I do receive the email.
I intend ti purchase the product on completion of my evaluation. But this feature is important
procedure TForm61._Send(Profile, Sender, _To, _CC, _BCC, Subject, Body: String;
ReadReceiptRequested: Boolean; _Attachments: TArray<String>);
var
FolderFound: Boolean;
c, j, Count, k: Integer;
Session: IRDOSession;
Store: IRDOStore;
Drafts: IRDOFolder;
Recip: IRDORecipient;
MAil: IRDOMail;
IPMRoot: IRDOFolder;
ReplyRecip: IRDORecipient;
_name: String;
begin
Session:=CoRDOSession.Create;
Session.Logon(Profile,'', False, True,EmptyParam,EmptyParam);
Drafts:=Session.GetFolderFromPath('\\'+Sender+'\Inbox');
Mail:= Drafts.Items.Add(olMailItem);
Recip := Mail.Recipients.Add(_To);
Recip.type_:= olTo;
if not _CC.IsEmpty then
begin
Recip := Mail.Recipients.Add(_CC);
Recip.type_:= olCC;
end;
if not _BCC.IsEmpty then
begin
Recip := Mail.Recipients.Add(_BCC);
Recip.type_:= olBCC;
end;
// Recip.Resolve(EmptyParam, EmptyParam);
// ReplyRecip:=Mail.ReplyRecipients.Add('[email protected]');
Mail.ReplyRecipients.Add('[email protected]');
// ReplyRecip.Resolve(EmptyParam, EmptyParam);
for j:=0 to Length(_Attachments)- 1 do
Mail.Attachments.Add(_Attachments[j], EmptyParam, EmptyParam, EmptyParam);
Mail.Subject:=Subject;
Mail.ReadReceiptRequested:=ReadReceiptRequested;
Mail.HTMLBody:=Body;
if SignatureIndex>-1 then
begin
Signature:=Session.Signatures.Item(SignatureIndex+1); //noy zero-based
Signature.ApplyTo(Mail, False);
end;
Mail.OriginatorDeliveryReportRequested:=True;
Mail.Save;
Mail.Send;
end;
TIA
Ephraim
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论