Καλησπέρα σε όλους,
Εχω το εξής προβλημα, όταν προσπαθώ να στείλω ενα e-mail:
_mail = new MailMessage("[email protected]", "[email protected]");
SmtpClient client = new SmtpClient("smtp.gmail.com");
client.DeliveryMethod = SmtpDeliveryMethod.Network;
client.Credentials = new NetworkCredential("[email protected]", "passwrd");
_mail.CC.Add("[email protected]");
_mail.Bcc.Add("[email protected]");
_mail.Subject = "send test";
_mail.Body = "test.";
client.SendCompleted += new SendCompletedEventHandler(client_SendCompleted);
try
{
client.Send(_mail);
}
catch (Exception e)
{
MessageBox.Show(e.Message);
}
στο Client.Send πέρνω το error :
"Command not implemented. The server response was: " , και ναι!! δεν μου λέει το response του server.
Όλα τα e-mail addresses ειναι σωστά όπως και τα Crendetials.
Έχει καποιος καποια ιδέα για το γιατι γινετε αυτό ;
thnx Νάσος
Edit: Εβαλα και τον εταιρικό SMTP και πάλι το ίδιο πρόβλημα
"Success is the ability to go from one failure to another with no loss of enthusiasm."
Winston Churchill
"Quality means doing it right when no one is looking."
Henry Ford