I am trying to send Email using MailGun api with Swift. I created and activate free account with mailgun. Installed pod.
If I press button I am getting message "Email was sent" but I am not receiving this email, nor it is displays in mailgun "Logs" or "Reporting".
I have also added and verified my personal e-mail to "Authorized Recipients"
I tied to run on IOS simulator and actual devices no luck.
@IBAction func dddd(_ sender: Any) {
let mailgun = MailgunAPI(apiKey: "key-<my_key from mailgun>, clientDomain: "sandboxe437***********.mailgun.org")
mailgun.sendEmail(to: "me@mail.com", from: "Test User <myemail@mail.com", subject: "This is a test15", bodyHTML: "<b>test<b>") { mailgunResult in
if mailgunResult.success{
print("Email was sent")
}else{
print("error")
}
}
Any word of advise what did I missed?
Thank you,
Stalker