Help with Sending Emails from V5 white Label Self Hosted

Good day @david I Just wanted to thank you for your kind responces and also update you and every1 on my current progress.
(1) i did not change the PORT NUMBER as my configuration is not for gmail but for my own domain.
(2) WHER EXACTLY DO I RUN THE COMAND: UPDATE_SECRET=secret DO I DO IT IN cPanel or do i have to input my installation address before this?: UPDATE_SECRET=secret

MY EMAILS ARE FINALLY SENDING STARTING TODAY 15 NOV 2021
im not sure what was the solution yet because i made at least 3 changes at the same time before it worked.
i now know for a fact that whenever i edit the ENV file via cPanel, i must wait for the next morning before my changes are applied.
SO THESE ARE THE CHANGES AND MY REASONS:
(Change 1) at first when I edited the env file I was using my personal Gmail email address and password which was different from the email address I’m using to login to the invoice ninja platform, so when I got help and got confirmation that there was nothing wrong with my Gmail email settings on the env file edit that I had made, hi there thought to myself why it’s not working and this thought came to my mind… WHAT IF MY LOGIN DETAILS MUST BE THE SAME AS THE EMAIL & PASSWORD SETTINGS I PUT IN THE ENV FILE? so I went ahead and made changes to match them.

(Change 2) I’m using my own domain name which goes like [mydomain.co.za] therefore my email address is [[email protected]] and my cpanel recommended outgoing mail server settings for both SSL and TLS are:

MAIL HOST = [mail.mydomain.co.za]

MAIL PORT= 465 for SSL/TLS

previously I had put TLS and it didn’t work so I just went ahead to switch the MAIL_ENCRYPTION to SSL.

THIS IS THE A LOG ENTRY ON NOV 13:
[2021-11-13 10:08:05] production.ERROR: Connection could not be established with host smtp.gmail.com :stream_socket_client(): unable to connect to ssl://smtp.gmail.com:465 (Network is unreachable) {“userId”:1,“exception”:"[object] (Swift_TransportException(code: 0): Connection could not be established with host smtp.gmail.com :stream_socket_client(): unable to connect to ssl://smtp.gmail.com:465 (Network is unreachable) at /home/websiter/public_html/portal/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/StreamBuffer.php:261)
[stacktrace]

AND I REMEMBER DOING AN UPDATE SO THIS IS IS A LOG ENTRY FOR SAME DAY:
[2021-11-13 10:22:40] production.INFO: latest version = 5.3.30
and on 15 November emails started sending.
HERE IS THE LOG:
[2021-11-15 07:22:08] production.INFO: https://mydomain.co.za/ninjainstallfolder/public/phantom/quote/xyxtxyxhxtxgxjxhxfgshdi?phantomjs_secret=secret232