Καλώς ορίσατε στο dotNETZone.gr - Σύνδεση | Εγγραφή | Βοήθεια
σε

 

Αρχική σελίδα Ιστολόγια Συζητήσεις Εκθέσεις Φωτογραφιών Αρχειοθήκες

SmtpClient error "Command not implemented. The server response was: " στην αποστολή e-mail

Îåêßíçóå áðü ôï ìÝëïò Nassos.NET. Τελευταία δημοσίευση από το μέλος Nassos.NET στις 11-05-2007, 13:57. Υπάρχουν 1 απαντήσεις.
Ταξινόμηση Δημοσιεύσεων: Προηγούμενο Επόμενο
  •  11-05-2007, 13:31 31726

    SmtpClient error "Command not implemented. The server response was: " στην αποστολή e-mail

    Καλησπέρα σε όλους,

    Εχω το εξής προβλημα, όταν προσπαθώ να στείλω ενα 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

  •  11-05-2007, 13:57 31727 σε απάντηση της 31726

    Απ: SmtpClient error "Command not implemented. The server response was: " στην αποστολή e-mail

    Το πρόβλημα λύθηκε, αλλαζοντας το Inittialazation του SmtpClient  με port 587.

    SmtpClient client = new SmtpClient("smtp.gmail.com");

    SmtpClient client = new SmtpClient("smtp.gmail.com", 587);

    Νάσος


    "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

Προβολή Τροφοδοσίας RSS με μορφή XML
Με χρήση του Community Server (Commercial Edition), από την Telligent Systems