Outlook/MAPI/CDO is making me crazy. 
Author Message
 Outlook/MAPI/CDO is making me crazy.

Greetings,

I'm having big problems with Outlook/MAPI/CDO, and am in dire need of
assistance.

I want to:

1. Login to MailboxOne
2. Send e-mail based on data in an Access table
3. Logout of MailboxOne
4. Login to MailboxTwo
5. Send e-mail based on data in an Access table
6. Logout of MailboxTwo
7. Repeat for as many mailboxes as needed (held, most likely, in an Access
table).

All of this needs to be without human intervention (entering passwords and
such).

I have tried automating Outlook, but each mailbox has a different password,
and each of those is different than the user's network password, so setting
Outlook's authentication to NT Authentication doesn't prevent the login
dialog box (username, domain, password) from popping up.

I have tried using CDO to simply send all the messages from a single
mailbox, but changing the .Sender property so they appear to originate from
the correct person; I get messages that I don't have permission to send on
behalf of So-And-So, even though I have set myself to have permission.

*Any* assistance (books, websites, etc.) would be appreciated.

Regards,
Dave Glass



Sun, 14 Mar 2004 00:57:20 GMT  
 Outlook/MAPI/CDO is making me crazy.
I'm having similair problems.  I use the Logon method by

Set myOlApp = CreateObject("Outlook.Application")
Set gnspNameSpace = myOlApp.GetNamespace("MAPI") ' Namespace object.
gnspNameSpace.Logon "Joe Mama", "wrong password", false, true

The problem is that Outlook doesn't actually verify the password.  It
doesn't matter if it is right or wrong.  Outlook is then unable to
identify the user and then it complains it can't create an item
because it doesn't know where to send or recieve messages.  I think
the problem stems from my NT Domain being different from my Outlook
mail domain.  Is there a way to specify the user ID, the Domain, and
the password??

Thanks

Quote:

> Greetings,

> I'm having big problems with Outlook/MAPI/CDO, and am in dire need of
> assistance.

> I want to:

> 1. Login to MailboxOne
> 2. Send e-mail based on data in an Access table
> 3. Logout of MailboxOne
> 4. Login to MailboxTwo
> 5. Send e-mail based on data in an Access table
> 6. Logout of MailboxTwo
> 7. Repeat for as many mailboxes as needed (held, most likely, in an Access
> table).

> All of this needs to be without human intervention (entering passwords and
> such).

> I have tried automating Outlook, but each mailbox has a different password,
> and each of those is different than the user's network password, so setting
> Outlook's authentication to NT Authentication doesn't prevent the login
> dialog box (username, domain, password) from popping up.

> I have tried using CDO to simply send all the messages from a single
> mailbox, but changing the .Sender property so they appear to originate from
> the correct person; I get messages that I don't have permission to send on
> behalf of So-And-So, even though I have set myself to have permission.

> *Any* assistance (books, websites, etc.) would be appreciated.

> Regards,
> Dave Glass



Sun, 14 Mar 2004 11:23:20 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Help with CDO/Outlook mapi problem

2. MAPI, CDO, WinXP & Outlook 2k - Internet Only

3. Does outlook express support MAPI, CDO?

4. MAPI/CDO & Outlook

5. Sign and Encrypt mail in Visual Basic using Outlook, CDO or MAPI

6. HELP!!! Cmd.CreateParameter I am getting crazy

7. 50 users running Access, am I crazy.

8. ** HELP WITH vb 4.0 I am going crazy**

9. Overflow - Am I going crazy?

10. is this a bug or am i crazy?

11. Am I crazy, or is the Timer control?

12. Am I crazy or what?

 

 
Powered by phpBB® Forum Software