Sending emails with attachment

Hi,

Is there a way to send emails with attachments and not via the CDO object which is old tech? The email sender application does not currently support attachments.

We currently have a VBScript setup using CDO message however on sending the email it throws below exception. We are using Office 365 to send the emails - exchange online now requires TLS 1.2 and CDO does not use that hence fails to connect to the server. Is there another workaround and would you mind posting example code here please?