These settings are a guide for setting up Batchmail and EVMail. Your mail administrator may have additional information or alternative settings, dependent on your configuration.
OAuth2 Connections with Batchmail to Microsoft Email
For SMTP, your mailbox must have SMTP AUTH enabled.
Batchmail configuration with Microsoft Mail servers
MAIL_SERVER=smtp.office365.com
MAIL_PORT=587
MAIL_USER=<your email address>
MAIL_AUTH_TYPE = OAUTH2
MAIL_TOKEN_NAME = <token name>
MAIL_ENABLE_TLS = YES
Alternative EVMail configurations with Microsoft Mail servers
MAILBOX_TYPE = POP3
MAILBOX_PORT = 995
MAILBOX_SECURE = YES
MAILBOX_SERVER = outlook.office.com
MAILBOX_USER = <your email address>
MAILBOX_PASSWORD =
MAILBOX_AUTH_TYPE = OAUTH2
MAILBOX_EMAIL_TOKEN_NAME =<token name>
MAILBOX_TYPE = IMAP
MAILBOX_PORT = 993
MAILBOX_SECURE = YES
MAILBOX_SERVER = outlook.office.com
MAILBOX_USER = <your email address>
MAILBOX_AUTH_TYPE = OAUTH2
MAILBOX_EMAIL_TOKEN_NAME =<token name>
MAILBOX_TYPE = EXCHANGE
MAILBOX_SECURE = YES
MAILBOX_SERVER = outlook.office.com
MAILBOX_USER = <your email address>
MAILBOX_AUTH_TYPE = OAUTH2
MAILBOX_EMAIL_TOKEN_NAME =<token name>
EXCHANGE_URL = https://outlook.office.com/ews/Exchange.asmx