473,395 Members | 1,969 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Why emails to clients are going to spam folder?

Dear Team


WE are using ASP.Net with C#, for developing projects.

In many places we are sending emails to clients. These emails are reaching our clients SPAM box.

Please give solution to avoid this because it is keep on blocking our server and we are unable to proceed further.

Sample code is attached:

Expand|Select|Wrap|Line Numbers
  1. string from = "asd@gmail.com";
  2. string to = a.ToString();
  3. MailMessage mail = new MailMessage();
  4. mail.From = new MailAddress(from, "",system.text.encoding.UTF8);
  5.             mail.To.Add(a.ToString());
  6. mail.subject="";
  7.            mail.SubjectEncoding = System.Text.Encoding.UTF8;
  8. mail.body="";
  9. mail.BodyEncoding = System.Text.Encoding.UTF8;
  10.            mail.IsBodyHtml = true;
  11.            mail.Priority = MailPriority.Normal;
  12.            try
  13.            {
  14.                SmtpClient client = new SmtpClient("smtp.gmail.com");
  15.                client.Credentials = new System.Net.NetworkCredential(from, "12345");
  16.                client.DeliveryMethod = SmtpDeliveryMethod.Network;
  17.               client.Port = 587;
  18.              client.EnableSsl = true;
  19.                client.Send(mail);
  20. }
Jun 23 '10 #1
3 5731
muller
1
Hi

If your emails are being marked as spam, it is most likely something on your clients spam filter, and nothing you can do from your side. Check the content of your emails, maybe you will find something that is causing it to be marked as spam.

Ask your clients to add your email address to their safe senders list.

If your server is being blocked, it is most likely because you are sending out too many emails at once, not because your clients spam filter is blocking them. Try checking with your ISP the maxmimum number of emails you are allowed to send every hour.
Jun 23 '10 #2
Plater
7,872 Expert 4TB
Make sure your "from" header and the actual from are the same and a real email address.
Make sure you do not list and IP addresses in the email title/body/head/etc.
Avoid words that are commonly blocked: swear words, sexual words, body parts, things related to medicine or other questionable content.
Jun 23 '10 #3
PsychoCoder
465 Expert Mod 256MB
Other than the ideas already mention there really isn't a lot you can do from your end on this issue. You can always check to see if your host/ISP is on some sort of black list. I would also try setting mail.Priority to MailPriority.High
Aug 1 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Rob Meade | last post by:
Lo all Ok, had problems sending emails for the first time on the new server setup this evening, found the ASP FAQ article : http://www.aspfaq.com/show.asp?id=2026 Which offered an answer to...
2
by: charliewest | last post by:
I've seen on some websites that email address are "hidden" and protected from "spam bots". I've inquired how this is done in HTML and ASP newsgroups, but nobody seems to know... or answer. This is...
14
by: HB | last post by:
As many of us know, when we send legitimate emails to real customers from our apps, those emails often end up in the Hotmail (and MSN -- and AOL, too) junk folder. I've done a lot of testing with...
1
by: Vemraju | last post by:
Hi, I am using System.Net.Mail for sending mails. The emails are going out sometimes and not going out sometimes. When the mails are not going out it is giving the following error: “Error in...
1
by: tim | last post by:
Hi, I have tried to make some code (with VB6) that will retrieve email from my personal email inbox. This works fine, but I need to read emails from a shared folder. I have goggled a lot but I...
5
by: Gordon | last post by:
I'm working on a reset password script for my CMS, that will generate a random password and email it to a user when they request one. The problem I am having is that the mails being sent out are...
3
by: kkshansid | last post by:
ours is a university i m making an application so that students can apply online but the problem is that all mails by students go to spam folder of college email id.Is it a domain hosting problem?
8
by: Rebecca McCallan | last post by:
I am essentially looking for a bit of code which will allow me to refer to an unspecified MAPI folder. Just to put that into context, My code creates a new folder if there is a new sender, the new...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.