اشتراکها
اشتراکها
من عاشق Entity Framework هستم !
Some inspiration for effects on image
grids. The ideas include animations on the opening grid item, the
disappearance of the grid and the resulting view. Demo
با سلام و تشکر
در هنگام اجرای مثل با خطای زیر مواجه میشوم
در هنگام اجرای مثل با خطای زیر مواجه میشوم
An unhandled exception of type 'System.ServiceModel.ProtocolException' occurred in mscorlib.dll
Additional information: The content type text/html of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 13 bytes of the response were: '<HTML></HTML>'.
Additional information: The content type text/html of the response message does not match the content type of the binding (text/xml; charset=utf-8). If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly. The first 13 bytes of the response were: '<HTML></HTML>'.
اشتراکها
Font Awesome 5.11.1 منتشر شد
یک مثال : فرض کنید میخواهیم فراوانی کلمات موجود در یک متن را از طریق عملگر GroupBy محاسبه کنیم :
var article = "date datetime datelocal Groups dnttips the elements Groups the elements dnttips the".Split(' '); var result = article.GroupBy(x => x).Select(x => new { Word = x.Key, Count = x.Count() }); foreach (var item in result) { Console.WriteLine($"{item.Word} : {item.Count}"); }
خروجی
date : 1 datetime : 1 datelocal : 1 Groups : 2 dnttips : 2 the : 3 elements : 2
1. فرستادن ایمیلها با وقفه زمانی
2. نفرستادن پشت سر ایمیلها به یک host خاص
3. استفاده نکردن از کلمه هایی که احتمال اسپم شناخته شدن ایمیل را افزایش میدهند در قسمت Subject Email
در لینکهای زیر لیست بعضی از این کلمات را میتوانید مشاهده کنید:
http://blog.hubspot.com/blog/tabid/6307/bid/30684/The-Ultimate-List-of-Email-SPAM-Trigger-Words.aspx
http://www.inmotionhosting.com/support/edu/everything-email/spam-prevention-techniques/common-spam-words
4. فعال نکردن high priority
با فعال شدن این گزینه ایمیل شما مورد بررسیهای بیشتری قرار میگیرد و شانس اسپم شناخته شدن آنرا افزایش میدهد.
5. Set کردن Encoding صحیح
6. استفاده از حداکثر سه image در متن ایمیل
7. اضافه کردن هم htmlview و هم plainview به view ایمیل ارسالی
با مثال نحوه این کار را نشان میدهم:
منابع:
http://stackoverflow.com/questions/5042309/email-messages-going-to-spam-folder
http://www.andreas-kraus.net/blog/tips-for-avoiding-spam-filters-with-systemnetmail/
2. نفرستادن پشت سر ایمیلها به یک host خاص
3. استفاده نکردن از کلمه هایی که احتمال اسپم شناخته شدن ایمیل را افزایش میدهند در قسمت Subject Email
در لینکهای زیر لیست بعضی از این کلمات را میتوانید مشاهده کنید:
http://blog.hubspot.com/blog/tabid/6307/bid/30684/The-Ultimate-List-of-Email-SPAM-Trigger-Words.aspx
http://www.inmotionhosting.com/support/edu/everything-email/spam-prevention-techniques/common-spam-words
4. فعال نکردن high priority
با فعال شدن این گزینه ایمیل شما مورد بررسیهای بیشتری قرار میگیرد و شانس اسپم شناخته شدن آنرا افزایش میدهد.
mailMessage.Priority = MailPriority.High ; //not good
5. Set کردن Encoding صحیح
mailMessage.BodyEncoding = System.Text.Encoding.GetEncoding(“utf-8″);
6. استفاده از حداکثر سه image در متن ایمیل
7. اضافه کردن هم htmlview و هم plainview به view ایمیل ارسالی
با مثال نحوه این کار را نشان میدهم:
System.Net.Mail.AlternateView plainView = System.Net.Mail.AlternateView.CreateAlternateViewFromString System.Text.RegularExpressions.Regex.Replace(BodyText, @”<(.|\n)*?>”, string.Empty), null, “text/plain”); System.Net.Mail.AlternateView htmlView = System.Net.Mail.AlternateView.CreateAlternateViewFromString(BodyText, null, “text/html”); mailMsg.AlternateViews.Add(plainView); mailMsg.AlternateViews.Add(htmlView);
منابع:
http://stackoverflow.com/questions/5042309/email-messages-going-to-spam-folder
http://www.andreas-kraus.net/blog/tips-for-avoiding-spam-filters-with-systemnetmail/
اشتراکها