Click here to Skip to main content
15,877,967 members
Please Sign up or sign in to vote.
2.67/5 (3 votes)
See more:
Hi,

We've deployed an ASP.Net website which sends automated mails.
Problem is the mail goes to Junk folder in outlook :(

Few details.

The SMTP E-Mail in IIS 7 is configured as below:
E-Mail address: blank
<selected> Deliver e-mail to SMTP server. SMTP Server : blank. Port : 25. Authentication settings : Windows.

In Code it is coded as below:
SmtpClient Obj=new SmtpClient(Hostaddress)
mailFromaddress is blank
mailToaddresses set to people in the same domain
mailbody is Just "Hi", no html, no Junk-triggering content

Am I missing anything/Can anything be done to prevent this? If you need further details may be, you can tell me.

PS:We use outlook 2007. the from address in mail do not normally contain the domain name for mails from Ids in the same domain. but now this auto-generated mail has the from address displayed fully : "xxxxxxxx@XXXXXXX.com"
Posted
Updated 10-Mar-11 3:23am
v2
Comments
[no name] 1-Jul-11 5:32am    
Since it was Intranet, one of my teamie came up with a solution of Sending mail through ExchangeServer and not through SMTP. This overcame the spam trouble.

You might need a From Address. That can trigger a spam filter.

If you don't have a Subject, that can also trigger a filter.

PS:We use outlook 2007. the from address in mail do not normally contain the domain name for mails from Ids in the same domain. but now this auto-generated mail has the from address displayed fully : "xxxxxxxx@XXXXXXX.com"

That's only for Exchange mail. Normal SMTP will have the full address.
 
Share this answer
 
Comments
[no name] 10-Mar-11 9:28am    
It has a subject, sorry for not mentioning. I'll try adding the from field. But wouldn't the from field automatically be taken from the SMTP E-mail of IIS (as its marked windows credentials)? [The mail correctly has taken the sending systems email id]
GenJerDan 10-Mar-11 9:30am    
IIS should just be acting as the SMTP server, not the sender.
[no name] 12-Mar-11 9:21am    
From Field added.

Subject Field is Present.

Still it gets marked as Junk. Any alternate options?
GenJerDan 15-Mar-11 9:46am    
Well, if it's not the Subject or the sender tripping the junk alarm, it's probably the content of the email...or possibly lack of content. Another junk indicator is an HTML body without the plain-text version available.
A "good" HTML bodied email will have this in the header "Content-Type: multipart/mixed;" and then the body will be available as both "Content-Type: text/html;" and "Content-Type: text/plain; "
Member 3131864 14-Apr-11 1:11am    
hey,

Content-Type: multipart/mixed;" saved me from going emails to junk folders.

Thanks a lot..:-)
Are you sure it isn't junk? Nearly all the automated mail I get is.
Perhaps Outlook is just being discerning...
 
Share this answer
 
Comments
[no name] 10-Mar-11 9:30am    
:) big picture, yeah. But this is within intranet. Hoping there would be a solution for that!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900