Click here to Skip to main content
15,888,313 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
We have a domain name "www.mycloudcctv.com" at godaddy.com.
This application wants to send an email on our behalf using the email address “alerts@ mycloudcctv.com ". Following code snippet (ASP.NET) is being used to send the email from "alerts@ mycloudcctv.com ".the following code snippet send email but goes to spam or junk instead of inbox. i want to goes direct to inbox.
C#
try
           {

               System.Net.Mail.MailMessage objMM = new System.Net.Mail.MailMessage();
               objMM.From = new MailAddress(from-email, displayName);
               objMM.To.Add(new MailAddress(to-email));
               objMM.Subject = subject;
               objMM.Body = message;
               objMM.IsBodyHtml = true;

               SmtpClient smtp = new SmtpClient(EMAIL_SERVER);
               smtp.Credentials = new NetworkCredential(from-email, "Password");
               smtp.Send(objMM);

           }
           catch (Exception)
           {
               throw;
           }

plz, help me
Posted
Updated 8-Jun-15 19:17pm
v3

1 solution

There is nothing to advise on your code; your code sample is irrelevant. Rather, you have to check up your spam filter on the domain of the receiving address. This is pretty much off-topic, something resolved on the user level, unrelated to software development.

—SA
 
Share this answer
 
v2
Comments
Maciej Los 9-Jun-15 2:44am    
5ed!
Sergey Alexandrovich Kryukov 9-Jun-15 4:04am    
Thank you, Maciej.
—SA

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