• Outlook Message via VBA (2003 SP2)

    • This topic has 2 replies, 2 voices, and was last updated 19 years ago.
    Author
    Topic
    #431867

    I’m creating outgoing Outlook e-mail via VBA (from within Access using Automation). I would like to control (specify) the “From” property — I have my own Exchange Server mailbox from which the Outlook object appears to pull my name as the default From property for the message. However, I have also defined a workgroup shared mailbox in Outlook — I would like the Outlook object to use this mailbox’s e-mail address as the From property for the message I’m creating. Is there a way to do this?

    Thanks.

    Viewing 0 reply threads
    Author
    Replies
    • #1011813

      You cannot set the SenderName property in code, it is read-only for security reasons. Instead, you can set the SentOnBehalfOfName property.

    Viewing 0 reply threads
    Reply To: Outlook Message via VBA (2003 SP2)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: