Sending email using Microsoft 365 account.
Finally, fix the issue with my email system, it was by following instructions from Microsoft https://learn.microsoft.com/en-us/exchange/mail-flow-best-practices/how-to-set-up-a-multifunction-device-or-application-to-send-email-using-microsoft-365-or-office-365?WT.mc_id=365AdminCSH_globalsearch
MsgBody = "Hello, this is ANmar from ANmarSystems trying my emailing system"
MsgTo = "firstname.lastname@example.org"
MsgFrom = "email@example.com"
SendEmailMsgv2023 MsgTo, MsgFrom, MsgSubject, MsgBody