Cache 2010.1 and Office 365 SMTP Relay
Does anyone have any experience with getting, unfortunately, an older version of Cache to authenticate via SMTP to send email? I have verified that the settings are set up properly on the mailbox as I have successfully sent an email from a LAMP server, which comes from the same IP address.
If you have any thoughts, I would greatly appreciate it.
This is the error I receive
ERROR #6034: SMTP server connection failed during MAIL FROM command: <READ>zSend+105^%Net.SMTP.1.
when I run the following.
s server=##class(%Net.SMTP).%New()
s server.smtpserver="smtp.office365.com"
s server.port="587"
s auth=##class(%Net.Authenticator).%New()
s auth.UserName="user@sender.com"
s auth.Password="pa$$word"
s server.authenticator=auth
s message=##class(%Net.MailMessage).%New()
s message.From="user@sender.com"
d message.To.Insert("user@receiver.com")
s message.Subject="Sent by Cache mail"
s message.Charset="iso-8859-1"
d message.TextData.Write("This message has been sent using an SMTP server with Authentication.")
s status=server.Send(message)
i ($$$ISERR(status)) {
w server.Error
q $$$ERROR()
}
}