Hi.
I am developing an android app using xamarin in MS Visual Studio 2023 to send out emails anytime the phone's location changes to a particular email address (md.idiake.ng@outlook.com). I am sending from this email address (no-reply@234Aproko.com).
I have created both identities (as email addresses) in the Amazon SES dashboard and successfully verified them.
I have even successfully sent out two test messages from no-reply@234Aproko.com to md.idiake.ng@outlook.com from the dashboard.
Now in my app, I am using Mailkit to send out the mails. This is my code:
var message = new MimeMessage();
message.From.Add(new MailboxAddress("IMEI247Tracker Calls Alert", "no-reply@234Aproko.com"));
message.To.Add(new MailboxAddress("MD Idiake", "md.idiake.ng@outlook.com));
message.Body = new TextPart("plain")
{
Text = "Hi. Your Phone`s GPS Coordinates (" + m.Latitude + ": " + mLongitude + ")"};
message.Subject = "IMEI247Tracker (TM) Calls Alert Notification";
using var client = new MailKit.Net.Smtp.SmtpClient();
client.ServerCertificateValidationCallback = (s, c, h, e) => true;
client.Connect("email-smtp.eu-north-1.amazonaws.com", 2587, false);
client.Authenticate("Amazon SES Username", "Amazon SES Password");
client.Send(message);
client.Disconnect(true);
Whenever, the debugger gets to client.Send(message), it triggers an error that crashes the app.
This is the error message:
Message rejected: Email address is not verified. The following identities failed the check in region EU-NORTH-1: no-reply@234Aproko.com, IMEI247Tracker Calls Alert no-reply@234Aproko.com
So what have I not done?
i have even gone ahead to create and verify my sub-domain (mail.234Aproko.com) in the SES dashboard. I have included the MX and TXT strings in my domain DNS settings. Still no show.
i am in sandbox mode.
Expecting a quick resolution to my question.
Thanks.