Outlook automation options

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Petrol
    Contributor
    • Oct 2016
    • 303

    #1

    Outlook automation options

    When I create an email directly in Outlook, it gives me options to select the email account to use (the 'From' dropdown) and the address to direct replies to ('Delivery options'). I can't find any way to implement these options uning Mailitem.Send. Is it possible?
  • Answer selected by NeoPa at Jan 1 '26, 04:55 PM.
    NeoPa
    Recognized Expert Moderator MVP
    • Oct 2006
    • 32669

    Hi there Petrol.

    The Outlook.MailIte m object has various properties that pertain to who sent the email (Sender, SenderEmailAddr ess, SenderEmailType , SenderName, SendUsingAccoun t & SentOnBehalfOfN ame) which cover that area. You could also look at the ReplyRecipients collection property for whom the reply should be addressed to automatically.

    Essentially, the Outlook.MailIte m object needs to be set up with this information before you use the Outlook.MailIte m.Send() method.

    Comment

    • NeoPa
      Recognized Expert Moderator MVP
      • Oct 2006
      • 32669

      #2
      Hi there Petrol.

      The Outlook.MailIte m object has various properties that pertain to who sent the email (Sender, SenderEmailAddr ess, SenderEmailType , SenderName, SendUsingAccoun t & SentOnBehalfOfN ame) which cover that area. You could also look at the ReplyRecipients collection property for whom the reply should be addressed to automatically.

      Essentially, the Outlook.MailIte m object needs to be set up with this information before you use the Outlook.MailIte m.Send() method.

      Comment

      • Petrol
        Contributor
        • Oct 2016
        • 303

        #3
        Oh, I see. I had looked up Outlook.MailIte m, but I didn't see the Properties way down at the bottom of the page! Thank you. I'll try that.

        Comment

        • vetana3074
          New Member
          • May 2026
          • 3

          #4
          Originally posted by Petrol
          When I create an email directly in Outlook, it gives me options to select the email account to use (the 'From' dropdown) and the address to direct replies to ('Delivery options'). I can't find any way to implement these geometry dash options uning Mailitem.Send. Is it possible?
          If you're sending from a profile with multiple accounts, SendUsingAccoun t is usually the property you want for selecting the sender account. For replies, ReplyRecipients should work, although I've found it's worth testing because behavior can vary a bit depending on the Outlook version and account type.

          Comment

          • Petrol
            Contributor
            • Oct 2016
            • 303

            #5
            Thanks, Vetana. That's helpful.

            Comment

            • lindamarkever
              New Member
              • Sep 2026
              • 1

              #6
              Thanks for the information.

              Comment

              Working...