My employer is running a legacy version of Business Central (On-Prem) - Spring '19 Release, and has no immediate plans to upgrade. My question is about the 'From Address' when using codeunit 'Smtp Mail (400)' (yes, I know it's marked for removal), specifically the first two arguments of the CreateMessage procedure: FromName: Text; FromAddress: Text. and the AddFrom procedure that is subsequently called. The FromName is being obeyed, but the FromAddress is not. For test purposes on my Sandbox I'm using my Google GMail account with an App password (settings below) and I'm sending from the current user name & address
(in this case: ADMIN admin@M365x83076759.OnMicrosoft.com).

At the destination, the email headers seem to indicate that the original FromAddress had initially been set:-
From: ADMIN <nwebb767@gmail.com>
X-Google-Original-From: ADMIN admin@M365x83076759.OnMicrosoft.com
But, it appears to eventually use the 'Send mail as' value from my Gmail settings for the FromAddress

I tried configuring my gmail settings to send as another email address (a process that involved 2-step verification). I then ended up receiving an unsatisfactory ‘On behalf Of’ sender hybrid as below:-
Nicholas Webb <nwebb767@gmail.com>; on behalf of; nick@webb-web.co.uk (ADMIN) <nick@webb-web.co.uk>
Why is the FromAddress specified at point of message-creation being ignored / overridden?