BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TOutlookApplication in Delphi 2005

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation
View previous topic :: View next topic  
Author Message
Ulf Sturegren
Guest





PostPosted: Fri Aug 19, 2005 3:02 pm    Post subject: TOutlookApplication in Delphi 2005 Reply with quote



Hi,

I've been using TOutlookApplication and TMailItems in Delphi 5 and has now
migrated to Delphi 2005.
Everything works fine - except sending mails from Delphi app via
Outlook2003.

I did something like this;

var
Mi: _DMailItem;
x : olevariant;
p : integer;
begin
OutlookApplication1.Connect;
MI:=OutlookApplication1.CreateItem(olMailItem) as _DMailItem;

MI.Recipients.Add(aMailadress);
MI.Subject:=aSubject;
MI.Body:=ABody;

if AAttachmentFil<>'' then
MI.Attachments.Add(AAttachmentFil,olByValue,1,AAttachmentBen);
MI.Send;
end;

Any Ideas of how to do it in D2005 (cannot find any documentation on
TOutlookApplication)

regards,
Uffe Sturegren


Back to top
Dmitry Streblechenko
Guest





PostPosted: Fri Aug 19, 2005 5:04 pm    Post subject: Re: TOutlookApplication in Delphi 2005 Reply with quote



What is the exact problem? The fact that you get a security prompt when
MailItem.Send is called or that the message stays until you click
"Send/Receive" in Outlook?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Ulf Sturegren" <ulf.sturegren (AT) langleytravel (DOT) com> wrote

Quote:
Hi,

I've been using TOutlookApplication and TMailItems in Delphi 5 and has now
migrated to Delphi 2005.
Everything works fine - except sending mails from Delphi app via
Outlook2003.

I did something like this;

var
Mi: _DMailItem;
x : olevariant;
p : integer;
begin
OutlookApplication1.Connect;
MI:=OutlookApplication1.CreateItem(olMailItem) as _DMailItem;

MI.Recipients.Add(aMailadress);
MI.Subject:=aSubject;
MI.Body:=ABody;

if AAttachmentFil<>'' then
MI.Attachments.Add(AAttachmentFil,olByValue,1,AAttachmentBen);
MI.Send;
end;

Any Ideas of how to do it in D2005 (cannot find any documentation on
TOutlookApplication)

regards,
Uffe Sturegren




Back to top
Ulf Sturegren
Guest





PostPosted: Wed Aug 24, 2005 10:28 am    Post subject: Re: TOutlookApplication in Delphi 2005 Reply with quote



Hi,

No, that was not the problem !

But do You know how to get rid of it ?

Regards,
Uffe Sturegren


"Dmitry Streblechenko" <dmitry (AT) dimastr (DOT) com> skrev i meddelandet
news:43061121$1 (AT) newsgroups (DOT) borland.com...
Quote:
What is the exact problem? The fact that you get a security prompt when
MailItem.Send is called or that the message stays until you click
"Send/Receive" in Outlook?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Ulf Sturegren" <ulf.sturegren (AT) langleytravel (DOT) com> wrote in message
news:4305f4a7$1 (AT) newsgroups (DOT) borland.com...
Hi,

I've been using TOutlookApplication and TMailItems in Delphi 5 and has
now migrated to Delphi 2005.
Everything works fine - except sending mails from Delphi app via
Outlook2003.

I did something like this;

var
Mi: _DMailItem;
x : olevariant;
p : integer;
begin
OutlookApplication1.Connect;
MI:=OutlookApplication1.CreateItem(olMailItem) as _DMailItem;

MI.Recipients.Add(aMailadress);
MI.Subject:=aSubject;
MI.Body:=ABody;

if AAttachmentFil<>'' then
MI.Attachments.Add(AAttachmentFil,olByValue,1,AAttachmentBen);
MI.Send;
end;

Any Ideas of how to do it in D2005 (cannot find any documentation on
TOutlookApplication)

regards,
Uffe Sturegren






Back to top
Dmitry Streblechenko
Guest





PostPosted: Wed Aug 24, 2005 7:13 pm    Post subject: Re: TOutlookApplication in Delphi 2005 Reply with quote

Get rid of what problem?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Ulf Sturegren" <ulf.sturegren (AT) langleytravel (DOT) com> wrote

Quote:
Hi,

No, that was not the problem !

But do You know how to get rid of it ?

Regards,
Uffe Sturegren


"Dmitry Streblechenko" <dmitry (AT) dimastr (DOT) com> skrev i meddelandet
news:43061121$1 (AT) newsgroups (DOT) borland.com...
What is the exact problem? The fact that you get a security prompt when
MailItem.Send is called or that the message stays until you click
"Send/Receive" in Outlook?

Dmitry Streblechenko (MVP)
http://www.dimastr.com/
OutlookSpy - Outlook, CDO
and MAPI Developer Tool

"Ulf Sturegren" <ulf.sturegren (AT) langleytravel (DOT) com> wrote in message
news:4305f4a7$1 (AT) newsgroups (DOT) borland.com...
Hi,

I've been using TOutlookApplication and TMailItems in Delphi 5 and has
now migrated to Delphi 2005.
Everything works fine - except sending mails from Delphi app via
Outlook2003.

I did something like this;

var
Mi: _DMailItem;
x : olevariant;
p : integer;
begin
OutlookApplication1.Connect;
MI:=OutlookApplication1.CreateItem(olMailItem) as _DMailItem;

MI.Recipients.Add(aMailadress);
MI.Subject:=aSubject;
MI.Body:=ABody;

if AAttachmentFil<>'' then
MI.Attachments.Add(AAttachmentFil,olByValue,1,AAttachmentBen);
MI.Send;
end;

Any Ideas of how to do it in D2005 (cannot find any documentation on
TOutlookApplication)

regards,
Uffe Sturegren








Back to top
Oliver Townshend
Guest





PostPosted: Thu Aug 25, 2005 12:28 pm    Post subject: Re: TOutlookApplication in Delphi 2005 Reply with quote

Quote:
No, that was not the problem !

But do You know how to get rid of it ?

Yes he does, he wrote Redemption (check out his web site).

Other alternative are to reconfigure your exchange server to disallow it,
which kind of ruins the point having security (although most viruses that
want to can get around it), or to use extended mapi libraries.

Oliver Townshend



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi OLE Automation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.