1
Answer

Email goes to spam instead of inbox

ZAIN ULARIFEEN

ZAIN ULARIFEEN

9y
2.3k
1
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.

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
Answers (1)