Hi John,
I do agree with your mail server tech. Since the issue is reportedly a name resolution error, something might be an issue on the Xojo Cloud side.
The error: “smtp.Error: 103 (Unable to resolve address)” indicates that the application was unable to resolve the hostname mail.circleconsulting.us to an IP address before attempting to establish the SMTP connection.
Additionally, Thom is absolutely correct. Digital Ocean (Xojo Cloud’s infrastructure) is even one of those providers with a “block SMTP by default” policy, but I don’t agree that it’s a problem here. There is confirmed success with one code path but not another, so logically SMTP ports must be open for the successful code path to work. Also I would expect something other than a name resolution error, maybe a connection error. A good note to be aware of, but I don’t suspect it’s the culprit here.
There has got to be a minor difference between your button design and IPN handler design that you haven’t seen yet. Unfortunately, if you modify your project to make it safe to share publicly, you might remove or alter your actual problem.
Also, you are paying Xojo Cloud monthly for service and support. 103 makes it seem like possibly a networking issue, which could be within scope of Cloud support. Xojo Cloud support is usually private by email: hello@xojo.com
I, too, highly recommend a transactional email provider. I’m on the 200/day free tier at Mailjet. I even have an open source class that allows sending via their REST API but using the Xojo EmailMessage architecture. However, I usually just use their SMTP relay because it’s a standardized protocol and far less work.
One last thing, and the only wild-asㅤs-guess I will make, is that you could have a gremlin inside the quote for the address field. Happens sometimes with copy and paste. Select all the code, right-click, and select “Clean invisible ASCII characters”. Delete anything that changes.
Clean invisible characters menu item screenshot
If you need any hands-on assistance I do have availability for small private consulting contracts. support@strawberrysw.com
Best wishes,
Tim Parnell