HI Stefania,
I use the following for Office365 to force TLS 1.2:
- Code: Select all
/**
* @properties={typeid:24,uuid:"AABE20D5-EBA6-4210-BA5F-AA5747432095"}
* @return {Array<String>}
*/
function email_settings() {
/** @type {Array<String>} */
return new Array('mail.smtp.starttls.enable=true','mail.smtp.ssl.enable=false','mail.smtp.port=587', 'mail.smtp.tls.enable=true', 'mail.smtp.ssl.protocols=TLSv1.2', 'mail.smtp.host=smtp.office365.com');
}
Then I use this as the last parameter when calling
sendMail(to, from, subject, msgText, cc, bcc, attachment, email_settings())