C# - Email Messages Going To Spam Folder?
Feb 18, 2011
I have created a community portal, in which user creates his/her account. After successfull registration a confirmation mail is send on registered email address.
I am using the following code to send the mail -
[Code]....
While testing we found that all the confirmation mails are going to SPAM folder instead of Inbox.
Is there anything wrong with the code or is there anything related to security.
View 3 Replies
Similar Messages:
Jul 24, 2013
I am developing one web application in this,i am sending mail after registration uing c# in mvc but for gmails its going to spam folder how to send this to inbox?
View 1 Replies
Jun 29, 2010
I am building an email feature in my website (jobs site). By using this functionality, recruiters will be able to send emails to candidates. I want an option so that the user can also set 'From Address' and the email should be ANTI-SPAM compliant.
View 2 Replies
Mar 9, 2011
my all mail come in spam folder ..
View 1 Replies
Jan 30, 2011
We have a business web application that periodically sends emails as reminders, links to client data, etc. Our company uses Google Apps for our email provider (with our own domain name), and the web application sends email through Google with SMTP.
The problem is that Google Apps / Gmail keeps marking the messages as spam, even for the inboxes in our domain name. No other email provider seems to mark it as spam (but of course we haven't tested them all...).
We've tried various formulations of the body test: i.e. including more contextual information, addressing the recipient by name, but so far with no apparent changes. This makes me thing it may be something about our email sending process, rather than the content of the email, that's causing the emails to be marked as spam.
Things that we tried but that didn't solve the problem:
"From" address is valid and not spoofed SPF records are correct, and show as "pass" in the email header Since we are connecting to Google's SMTP server to send email, it's not an issue with a blacklisted IP address (however, our website has a static IP address that is not blacklisted). Email is not very spammy: I've checked against several online spam filter tests, and the email body always shows up as extremely unlikely to be filtered. HTML body vs plain-text body seems to make no difference. We send a small volume of email: probably 0-10 emails per day, so I don't see how that would make this suspicious. Whenever we have access to the receiving inbox (i.e. it belongs to an employee of our company), we've been marking the emails as "not spam", since Gmail may be using communal statistics to determine spam. After a couple times this results in emails to that particular inbox getting through, but doesn't seem to help other accounts.
What else can we try?
If it makes a difference, we're sending emails using an ASP.NET site running .NET 3.5. A typical email gets sent like this:
var message = new MailMessage(new MailAddress(from), new MailAddress(to)) {
Subject = subject,
Body = body
IsBodyHtml = true
};
// SMTP details stored in web.config
new SmtpClient { EnableSsl = true }.SendAsync(message, null);
EDIT: I've seen this similar question: How to stop Gmail from marking mails sent by my web app as spam?, but the situation is a little different since we can reproduce it by sending and receiving from the same Google Apps domain. Besides, I believe I have covered all of the proposed solutions for that question.
View 3 Replies
Jul 24, 2012
why sometime mail go to spam folder and take lots of time.
View 1 Replies
Jun 22, 2012
I'm sending emails inviting contacts to login to setup an account on a customers website. I'm using SMTP from web methods in code behind... These emails have clickable links that make them get caught as spam.
Code:
<html><body>Please use this link <a href="http://xxx.yyy.zz.aa/asdfasdf.aspx?invite=' + CAST(@guid as varchar(100)) + '">Click Here</a> to create an account.</body></html>
How can I avoid this?
View 3 Replies
Jan 21, 2010
<asp:HyperLink id="HyperLink1" runat="server" Text="Email" NavigateUrl="mailto:example@mydomain.com" />
This is how I added an email link on my page, but does .net have any built in tool for preventing Robots from finding this address? What is a good way to present an email link that wont be detected by spam robots?
View 1 Replies
Mar 10, 2011
I am sending Email from SMTP server and all my Emails are landed in Junk in Hotmail ,Live and Yahoo. I am not using any Spam like content and following all the guildline to send Emails.
I check on mail to identify the Issues and found quite a few issues below
1) HELO Greeting Check
Description: Email Server HELO is . HELO greeting does not contain a valid domain. We would recommend to have a valid domain in HELO greeting. Ideally HELO greeting should be the same as Email server host name (in FQDN format).
2) BATV (Bounce Address Tag Validation) Check
Description: Email server is not using BATV format while sending out emails. BATV is recommended to ensure that your users do not become a victim of bounce floods.
3) DKIM (Domain Keys Identified Mail) Check
Description: Email does not contain any DKIM/Domain Keys Signature and the published Domain Keys policy rejects such unsigned emails. Therefore it is very likely that your emails are considered SPAM by Email servers verifying Domain keys. Signing your Outbound emails as per your Domain Keys policy will minimize chances of your Email being considered as SPAM.
View 2 Replies
Mar 31, 2010
I send newsletter to all the members of my website, usually i just create simple newsletter with text and hyperlinks
So my times i tried adding images to it but whenever i add images in the newsletter e-mail, the users who are using different mailboxes, either my mail goes in their SPAM folder or if my mail goes in their INBOX then image doesn't show up, it shows a blank space
what's the issue ? what's causing the issue ? code ? or Exchange server on which my website mailbox is for sending e-mail ?
How to solve this issue ?
Almost everyday we recieve newsletters from many websites/companies (there newsletter includes images, colors full templates etc) and still we receive in our inbox and all the images are visible. how ?
View 9 Replies
Sep 20, 2010
I have a big problem with my SMTP server for sending emails. It's down often. At this point I am using this code:
MailMessage mailMsg = new MailMessage();
mailMsg.From = new MailAddress("fromMail@example.com");
mailMsg.To.Add("toMail@example.com");
mailMsg.Subject = "...";
mailMsg.IsBodyHtml = true;
mailMsg.BodyEncoding = Encoding.UTF8;
mailMsg.Body = "Mail";
mailMsg.Priority = MailPriority.High;
SmtpClient client = new SmtpClient();
client.Credentials = new NetworkCredential("account@gmail.com", "password");
client.Port = 456;
client.Host = "smtp.gmail.com";
client.EnableSsl = true;
client.Send(mailMsg);
But, when my SMTP server is down I want to put all the emails in a queue and when it recovers I want to send them one a time. Is there any way how to do this programatically in C#?
View 1 Replies
Oct 20, 2010
message.Body = "Message: " + ex.Message +Environment.NewLine + "Data:"+ ex.Data
+ Environment.NewLine + "Stack Trace:" + ex.StackTrace;
I am using Environment.NewLine., its going to next line perfectly but I need to put two line separated with ---------------- in between each message Data StackTrace.
View 2 Replies
Jun 4, 2010
I'm adding now e-mail sending to my application and I have one problem. When user gave a bad e-mail address (that doesn't exist) and I'll send email to that address, that email message will go back to my email account. So for 100 users it will be 100 unwanted messages. In this situations my email account will be full of messages. So: how to avoid that situations and remove automatically incoming messages?
View 3 Replies
Aug 10, 2010
How to manage user messages to avoid hardcoding messages accross the web application.
View 17 Replies
Jan 26, 2010
For error messages, validation faults etc you have
ModelState.AddErrorMessage("Fool!");
But, where do you put success responses like "You successfully transfered alot of money to your ex." + "Your balance is now zero". I still want to set it at the controller level and preferably in key-value way, the same way as errormessages but without invalidating the modelstate.
View 3 Replies
Feb 18, 2010
I want to send and store sent email in sent items folder. Sending is not a problem, but what about archiving the email?
Any tips or at least thirid party component to achieve this?
View 3 Replies
Dec 27, 2010
i am wondering if there is some abilities to send files from folder host in a server to email address. for example: i have textbox (for email address) and Button. after the user fill his email address and click the button i want to load some files from some folder in the server and to send them to the email address he provided. any idea??? (if there is any possibility to do that, please use C# + Asp.net)
View 6 Replies
Aug 29, 2010
I am trying to send email from my asp .net code ,it is sending email to email ids except gmail.com. all mails with gmail.com is going into my Badmail folder in inet pub folder in my local system.
SmtpClient client = new SmtpClient();
client.Host = "mail.abc.com";
client.DeliveryMethod = SmtpDeliveryMethod.PickupDirectoryFromIis;
client.Credentials = new System.Net.NetworkCredential("ab", "rr");
client.Port = 25;
string to = "arvind.abes@gmail.com";
string from = "rvsales@westrvwholesaler.com";
MailMessage mail = new MailMessage(from, to);
mail.Subject = "hello......?";
mail.IsBodyHtml = true;
mail.Body = "hi, how are you?may be this will work";
mail.Priority = MailPriority.High;
//client.EnableSsl = true;
try
{
client.Send(mail);
}
catch (Exception ex)
{
Exception ex2 = ex;
string errorMessage = string.Empty;
while (ex2 != null)
{
errorMessage += ex2.ToString();
ex2 = ex2.InnerException;
}
Response.Write(ex2.Message);
}
mail.Dispose();
View 1 Replies
Oct 5, 2013
i am sending mail message using smtp,,,i want to send mail message with attachments....but i do not know how to set path.
below is code :
System.Net.Mail.Attachment attachment; attachment = new System.Net.Mail.Attachment("how to set path here"); message.Attachments.Add(attachment);
View 1 Replies
Nov 30, 2010
I don't know much about the .Net environment, so my first idea was to just write a console app that scans the folder for new content, and then emails alerts out. Then put the .exe as a scheduled task on the server, executing every few minutes. This seems pretty archaic to me though. Is there a more elegant way to do this for my website?
View 3 Replies
May 7, 2015
in my project i have a problem with sending document from local machine D Drive..
when i am click send button clicks it automatically fetch the document and send automatically ..
View 1 Replies
Oct 11, 2010
I am using mailbee object for sending bulk mail with smtp authentication but when i am sending the mail, all mails are marked are spam.
View 3 Replies
Oct 10, 2010
app.config
<system.net>
<mailSettings>
[code]...
View 2 Replies
Feb 16, 2010
I am developing a site on my local server. I am using ASP.NET 2.0 membership provider. When someone signups, an email is supposed to be sent off to be verified. In the createwizard you have the following code.
<MailDefinition BodyFileName="~/EmailTemplates/NewAccountTemplate.htm"
From="[URL]" IsBodyHtml="True"
Subject="Website Email Account">
</MailDefinition>
Problem is that when I run this I get The server response was: Rejecting message as UCE/Spam Is there anything that I can do to stop getting this error message.
View 1 Replies
Dec 16, 2010
I need to learn the following security-related questions pertaining to ASP.NET membership system (which I am currently using):
1) How to set up "secure" log-in for site members (when other sites say "secure login", what exactly is meant?) --- is that easy for a novice programmer to set up?; are there third parties?; is this done in collaboration with the site host?...Or by using the ASP.NET member system (which I have already set up), is that by default "secure" already?
2) When signing members up, what is best way to block out spammers from the registration process? Is there also third party software I can use? Perhaps someone can give quick answers to these, or point me in the right direction to read a good updated resource on this.
View 4 Replies