עבור לתוכן
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.

שאלה לגבי שליחת מיילים ב windows form

Featured Replies

פורסם

אני רוצה ללחוץ על כפתור ושיישלח מייל לאנשהוא.

עכשיו ביררתי באינטרנט והגעתי לטמפלט הבא:


MailMessage msg = new MailMessage();
msg.Subject = "Tips Invantation";
msg.Body = "Submitted By: " + txtName.Text + "\n";
msg.Body = txtComment.Text;
msg.From = txtSender.Text;
msg.To = destination.text;
SmtpClient SmtpMail = new SmtpClient();
SmtpMail.Host = "smtp.gmail.com";
SmtpMail.Port = 25;
SmtpMail.Timeout = 50000;
SmtpMail.EnableSsl = true;
SmtpMail.Credentials = new System.Net.NetworkCredential(txtSender.Text, senderPass.Text);
SmtpMail.Send(msg);

השאלה שלי היא מה צריך להזין בשדות של : txtSender.Text, senderPass.Text (אני רוצה לשלוח דרך GMAIL)

ואם אפשר בפרוט כי הבנתי שצריך איזה IP של ה MAIL אבל לא הבנתי איך מביאים אותו.

תודה.

פורסם

אתה צריך משתמש וסיסמא לחשבון בג'ימייל (או בכל שרת דואר שאתה משתמש בו) - תשתמש בחשבון שלך למשל.

ארכיון

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

דיונים חדשים

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.