עבור לתוכן
View in the app

A better way to browse. Learn more.

HWzone

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

בעיה בשליחת מייל - .NET

Featured Replies

פורסם

שלום,

בהמשך לשאלות הקודמות שלי:

הקוד נראה כך:

    MailMessage m = new MailMessage();
m.From = this.TextBox1.Text;
m.To = "zahiz07@gmail.com";
m.Subject = "Mail From Fashion";
m.Body = this.TextBox2.Text;
m.Priority = MailPriority.Normal;

if (this.TextBox1.Text != "")
{
SmtpMail.SmtpServer = "smtp.gmail.com";
SmtpMail.Send(m);
this.Panel1.Visible = true;
this.Panel2.Visible = false;
}
else
{
this.Panel1.Visible = false;
this.Panel2.Visible = true;
}

ההערה שאני מקבל היא זו:

At least one of the From or Sender fields is required, and neither was found.

אבל יש שולח.. ניסיתי גם לשנות ל "LocaHost" וזה גם לא עזר.

מישהו יכול לעזור?

פורסם

חיפוש של הודעת השגיאה בגוגל יפנה אותך להרבה פורומים שבהם נשאלה השאלה הזו (וגם התשובה לה).

פורסם
  • מחבר

כמובן שניסיתי את זה, אל ללא אועיל.

אחרי debugging הבעיה קודמת עברה, אבל הבעיה הנוכחית היא זו:

The server rejected the sender address. The server response was: 530 5.7.0 Must issue a STARTTLS command first. r12sm15855089fah.20

וזאת למרות שהכנסתי מייל אמיתי ותקין.

עוד רעיונות?

פורסם

וגם חיפוש של ההודעה הזו היא מוצא לך את התשובה - gmail מחייב אותך להשתמש בתקשורת מאובטחת, ולספק שם משתמש וסיסמה.

אגב, חיפוש של SmtpMail ב-msdn מראה שהמחלקה הזו היא Obsolete, ושמומלץ להשתמש ב-SmtpClient במקומה.

פורסם
  • מחבר

1. אין צורך בציניות ובטח לא ברצח עם.

2. הסתדרתי לבסוף.

תודה,

אפשר לנעול

ארכיון

דיון זה הועבר לארכיון ולא ניתן להוסיף בו תגובות חדשות.

דיונים חדשים

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.