Mails delivery Spam Instead of Inbox
-
Hi, I develop an email application that runs fine. But it sends mails to Spam box of recepient and not to the Inbox. How do I rectify this cos i want it to be dilivered into the Inbox. Here is my code snippet for the sendindMail Method. private void sendingMail() { Dictionary<string, Stream> attachments = new Dictionary<string, Stream>(); if(NewFileUpload.HasFile) { attachments.Add(NewFileUpload.FileName, NewFileUpload.PostedFile.InputStream); } FacadeSystem.SendEmailMessage(emailToTextBox.Text, SubjectTextBox.Text, BodyTextBox.Text, attachments); } Here is my web setting for the MailSetting. Thanks
-
Hi, I develop an email application that runs fine. But it sends mails to Spam box of recepient and not to the Inbox. How do I rectify this cos i want it to be dilivered into the Inbox. Here is my code snippet for the sendindMail Method. private void sendingMail() { Dictionary<string, Stream> attachments = new Dictionary<string, Stream>(); if(NewFileUpload.HasFile) { attachments.Add(NewFileUpload.FileName, NewFileUpload.PostedFile.InputStream); } FacadeSystem.SendEmailMessage(emailToTextBox.Text, SubjectTextBox.Text, BodyTextBox.Text, attachments); } Here is my web setting for the MailSetting. Thanks
Probably because you're in Nigeria ? :P You can't stop a spam filter from blocking your email in code, except by sending mail that doesn't look like spam. Does your reply address and display name match ? Do you have a bunch of names being mailed to at once ? Do you have words like ciallis ( or cia11is ) in your email ? The problem is the content, not the code.
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )