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