Send email no longer working

I’m trying to send email through a mail server from my app. I’m being told the app is the problem.

This was working before. Did some setting change?

Can y’all take a quick look at my code (stripped of nonsense) ?

var fwp as new XojoCloud.Firewallport(587, XojoCloud.FirewallPort.Direction.Outgoing)

fwp.open()

if fwp.isOpen() then

var s1 as new smtpSecureSocket

s1.address = “mail.circleconsulting.us

s1.port = 465

s1.username = “circlecalc@circleconsulting.us

s1.password = " . . . . . "

s1.sslConnectionType = smtpSecureSocket.sslConnectionTypes.TLSv12

s1.sslEnabled = true

s1.connect

app.mail = new emailMessage

app.mail.fromAddress = “circlecalc@circleconsulting.us

app.mail.addRecipient(app.payerEmail)

app.mail.addRecipient(“jvscanlan@circleconsulting.us”)

app.mail.subject = "CircleCalc”

app.mail.bodyHTML = message

'app.mail.headers.addHeader(“x-app.mailer”, “smtp test”)

app.writeToLog “email from button created”, false

s1.messages.add(app.mail)

try

      s1.sendMail

catch e

      app.writeToErrorLog "oops”

end try

Why is the socket a local variable? This needs to be a property to whatever window/class you are using.

It could be helpful if you’d share the actual error message from e instead of just “oops.” I’ve seen a few mail hosts drop support for TLS 1.2 this year but this is rare.

I believe SMTPSecureSocket also has a ServerError event you might try implementing.