Set sender email address using Microsoft Outlook Mail
I'm looking forward to send email from another sender email address in Outlook from automation; the automation works fine with default sender email id however it throws exception when I assign another sender email id to "SendUsingAccount" property of Mail object.
I found a community post below, I added the script as advised but this has also not fixed the issue; I get different exception when I use the script. Detailed exception and code is attached herein.
The "SendUsingAccount" property is the account that you want the email sent from (normally you wouldn't change this as it would come from the account you are using in Outlook). You need to set the "Recipients" property to send the message to someone.