ZAIN ULARIFEEN

ZAIN ULARIFEEN

  • 1.6k
  • 143
  • 150.1k

Email goes to spam instead of inbox

Jun 9 2015 1:09 AM
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.
  1. try  
  2. {  
  3. System.Net.Mail.MailMessage objMM = new System.Net.Mail.MailMessage();  
  4. objMM.From = new MailAddress(from-email, displayName);  
  5. objMM.To.Add(new MailAddress(to-email));  
  6. objMM.Subject = subject;  
  7. objMM.Body = message;  
  8. objMM.IsBodyHtml = true;  
  9. SmtpClient smtp = new SmtpClient(EMAIL_SERVER);  
  10. smtp.Credentials = new NetworkCredential(from-email, "Password");  
  11. smtp.Send(objMM);  
  12. }  
  13. catch (Exception)  
  14. {  
  15. throw;  
  16. }  
plz, help me

Answers (9)