I have problem sending emails (API http request - .Net Core) using Mailgun from the server.
If I am using the localhost, then the emails are being sent correctly but as soon as I publish the app on the server and try to send the email I get (The SSL connection could not be established, see inner exception.)
I am not sure if it’s server SSL issue, Mailgun issue or Cloudflare issue.
I wonder if someone faced this issue before.
I spend the last 3 days (few hours a day) trying to fix this issue but I am not getting anywhere.