Add mail message to draft folder of any outlook account?

G

Google-Albert

Hi @ll,

I wrote a small VB routine to add a message to my draft folder. This
enables me to generate eMails by program but verify it interactively
before sending it out.

But my program should generate such messages not only for me. It should
add a message to the draft folder of an other account.

Does any know, how to achieve this?

Thank You,
Albert
 
G

Guest

This would be easy for any of the other default folders if the other users
grant you Delegates rights to those folders, but you cannot delegate
permissions to the Drafts folder.

The only good way to do what you want is to use CDO to programmatically
login with a profile that has read permissions on the mailbox and write
permissions on the Drafts folder. Then use CDO to obtain a handle to that
folder and create the message.

See this link for info on using CDO to login with a profile that is not
specified on the PC running your code:

How To Log On to Exchange with the ProfileInfo Parameter:
http://support.microsoft.com/default.aspx?scid=kb;en-us;195662

Otherwise, the only way to do this with the Outlook Object model is to add
every single mailbox to the Outlook profile running the code, then navigate
through every Mailbox to find the Drafts folder and add the message. Not
very fun.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top