תקלה .
שלום .יש לי תקלה שאני לא מצליח לעלות עליה , אני מנסה לשלוח מייל וזו הודעת השגיאה שאני מקבל. לא מצאתי משהו דומה במאגר התקלות לכן אני פונה אליכם. הקוד הוא :
שלום .יש לי תקלה שאני לא מצליח לעלות עליה , אני מנסה לשלוח מייל וזו הודעת השגיאה שאני מקבל. לא מצאתי משהו דומה במאגר התקלות לכן אני פונה אליכם. הקוד הוא :
public void send_email(string email_address,string message) { // שליחת דוא"ל .... עובד //******************************************* // קוד לשליחת דואר אל"ק try { MailMessage oMsg = new MailMessage(); // כתובת המקור של הדואר השולח oMsg.From = "[email protected]"; // כתובת היעד oMsg.To = email_address; // שם השרת שנותן את השירות SmtpMail.SmtpServer = "smtp.myrealbox.com"; // כותרת הודעת הדואר oMsg.Subject = "Remaider"; // תוכן ההודעה oMsg.Body = message; SmtpMail.Send(oMsg); oMsg = null; } catch (Exception e1) { MessageBox.Show(e1.ToString()); }
וזה מה שאני מקבל : System.Web.HttpException: Could not access 'CDO.Message' object. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.InteropServices.COMException (0x80040211): The message could not be sent to the SMTP server. The transport error code was 0x800ccc=! 30b. The server response was not available