On Jun 28, 2:57 pm, "Sue Mosher [MVP-Outlook]"
<sue...@outlookcode.com> wrote:
> I'd use CDO 1.21 and dynamic profiles. Start athttp://www.cdolive.com
>
> --
> Sue Mosher, Outlook MVP
> Author of Microsoft Outlook 2007 Programming:
> Jumpstart for Power Users and Administrators
> http://www.outlookcode.com/article.aspx?id=54
Sue,
Found most of what I was looking for at that site. Thank you very
much!
I'm stuck on one concept however. I'm attempting to use the dynamic
profile option and login:
' Or, logon using an new MAPI session with a dynamically created
profile
strProfileInfo = "<Your Servername>" & vbLf & "<Your Mailbox>"
objSession.Logon "", "", False, True, 0, False, strProfileInfo
Plugging in the appropriate info for server name and mailbox, I'm
getting prompted to select one of my existing Outlook (2003, SP2)
profiles. Deleting those profiles and running the script again, I now
am prompted to create an Outlook profile.
I'm guessing something in the above code is not working. Unfortunately
I'm not sure where to look from here.
Prior to plugging in my own code into the sample code, I was able to
use the sample code to send an email from the correct profile. I can't
quite figure out why it worked to send an email, but now not when I
try to create a folder. My complete code is below: