This script can send an email message with Office 365 Exchange Online. Also this script allows you to delay sending an email message.
?Microsoft Outlook has a feature that enables you to delay sending email messages. However, this feature is not available in the Outlook Web App (OWA). Therefore, in order to delay sending email messages for some business needs, you must find a workaround.
You can find more All-In-One Script Framework script samples at https://aka.ms/onescriptingallery