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 

How can I send Outlook mail from a delphi 7 program...

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





PostPosted: Wed Jun 25, 2003 8:31 pm    Post subject: How can I send Outlook mail from a delphi 7 program... Reply with quote



....as another 'sender'...
We have a helpdesk inbox and my own mailboxes, but how can I send mail
as it was from the helpdesk and any replay would go to the helpdesk
inbox...???

We have "Mailbox - Help desk" with calendar, contacts etc. and my
personal
mailbox:
Outlook Today - [Postboks -Leif Magne Svendsen]

This code will give me my personal inbox

OA := CreateOleObject('Outlook.Application');
NS := OA.GetNameSpace('MAPI');
FO := NS.GetDefaultFolder(olFolderInBox);

How can I get the other mailbox as 'default'?? I want that all reply
will end up in the helpdesk inbox...

Regards

Leif M. Svendsen



Back to top
Dmitry Streblechenko
Guest





PostPosted: Wed Jun 25, 2003 11:28 pm    Post subject: Re: How can I send Outlook mail from a delphi 7 program... Reply with quote



Use MailItem.ReplyRecipients collection to add an address where the reply
should go to.

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


"Leif Magne Svendsen" <lmagsven (AT) online (DOT) no> wrote

Quote:
...as another 'sender'...
We have a helpdesk inbox and my own mailboxes, but how can I send mail
as it was from the helpdesk and any replay would go to the helpdesk
inbox...???

We have "Mailbox - Help desk" with calendar, contacts etc. and my
personal
mailbox:
Outlook Today - [Postboks -Leif Magne Svendsen]

This code will give me my personal inbox

OA := CreateOleObject('Outlook.Application');
NS := OA.GetNameSpace('MAPI');
FO := NS.GetDefaultFolder(olFolderInBox);

How can I get the other mailbox as 'default'?? I want that all reply
will end up in the helpdesk inbox...

Regards

Leif M. Svendsen






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.