Welcome to Lockergnome.com!
HomeHome FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

Send/Receive Mail in Oulook using C#

 
   Home -> Office -> Interoperability RSS
Next:  Interoperability: Votingoptions mail with MAPI  
Author Message
ProgrammingTestAccount

External


Since: Jul 22, 2007
Posts: 1



(Msg. 1) Posted: Sun Jul 22, 2007 8:09 pm
Post subject: Send/Receive Mail in Oulook using C#
Archived from groups: microsoft>public>outlook>interop (more info?)

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?
Back to top
Login to vote
Ken Slovak - [MVP - Outlo

External


Since: Oct 17, 2003
Posts: 3213



(Msg. 2) Posted: Mon Jul 23, 2007 9:28 am
Post subject: Re: Send/Receive Mail in Oulook using C# [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

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.

--
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


<ProgrammingTestAccount DeleteThis @gmail.com> wrote in message
news:1185160174.048422.169320@e9g2000prf.googlegroups.com...
> 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?
>
Back to top
Login to vote
Display posts from previous:   
       Home -> Office -> Interoperability All times are: Eastern Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can 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

Categories:
 General
 Microsoft Windows XP
 Microsoft Windows Vista
 Microsoft Windows (other)
  Microsoft Office
 Microsoft Office (other)
 Computer Security
 Linux
 Movies


[ Contact us | Terms of Service/Privacy Policy ]