السلام عليكم و رحمة الله،
أنشأت تطبيقا لإرسال الرسائل(إميلات)، يتم الإرسال بدون ظهور أي مشكلة، لكن الرسائل لا تصل للمتلقين و يتم رفضها، السبب هو:
Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the recipient domain. We recommend contacting the other email provider for further information about the cause of this error. The error that the other server returned was: 550 550 5.1.1 <smaali90@mail.com>... User is unknown {mx-us003} (state 13).
الكود الخاص بالإرسال هو:
MailMessage mm = new MailMessage("smaali@gmail.com", "fbsmli@mail.com");
// SmtpClient mailService = new SmtpClient();
// content
mm.Subject = "TestObjet";
mm.Body = "Réception d'un message de test d'envoi";
mm.CC.Add("smaali90@mail.com");
// some attachments
mm.Attachments.Add(new Attachment("c:\\filename.txt"));
// Sending message
SmtpClient sc = new SmtpClient("smtp.gmail.com", 587);
// our account credentials
sc.Credentials = new System.Net.NetworkCredential("smaali90@gmail.com", "acho_tsdi", "");
sc.EnableSsl = true;
// Catching result
try
{
sc.Send(mm);
MessageBox.Show("Message sent");
}
catch (Exception ex)
{
MessageBox.Show("Error: " + ex.Message);
}
هل سبق و أن صادفت هذا المشكل؟ و ما الحل؟
جزاكم الله خيرا