Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Interop / July 2007

Tip: Looking for answers? Try searching our database.

Send/Receive Mail in Oulook using C#

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ProgrammingTestAccount@gmail.com - 23 Jul 2007 04:09 GMT
I'm trying to write a program that uses Outlook to send and receive
mails for a certain account, and I want to programly enter the
password for the account when execute send and receive command, how
can I do that?
Ken Slovak - [MVP - Outlook] - 23 Jul 2007 14:28 GMT
You can't.

If this is an Outlook account that's already configured then it would have
to be the default sending account. If it's Outlook 2007 you can intercept
the item.Send event or the Application.ItemSend event and use the Accounts
collection to get the desired Account and set the item.SendUsingAccount
object property to the desired account.

With other versions of Outlook you can't do that. In no version of Outlook
can you set the password for an account as you use it.

Signature

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm

> I'm trying to write a program that uses Outlook to send and receive
> mails for a certain account, and I want to programly enter the
> password for the account when execute send and receive command, how
> can I do that?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.