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: - string from = "asd@gmail.com";
-
string to = a.ToString();
-
MailMessage mail = new MailMessage();
-
mail.From = new MailAddress(from, "",system.text.encoding.UTF8);
-
mail.To.Add(a.ToString());
-
mail.subject="";
-
mail.SubjectEncoding = System.Text.Encoding.UTF8;
-
mail.body="";
-
mail.BodyEncoding = System.Text.Encoding.UTF8;
-
mail.IsBodyHtml = true;
-
mail.Priority = MailPriority.Normal;
-
try
-
{
-
SmtpClient client = new SmtpClient("smtp.gmail.com");
-
client.Credentials = new System.Net.NetworkCredential(from, "12345");
-
client.DeliveryMethod = SmtpDeliveryMethod.Network;
-
client.Port = 587;
-
client.EnableSsl = true;
-
client.Send(mail);
-
}
3 5731
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.
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.
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
Sign in to post your reply or Sign up for a free account.
Similar topics
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...
|
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...
|
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...
|
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...
|
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...
|
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...
|
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?
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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,...
|
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...
|
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...
|
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,...
| |