Click here to Skip to main content
15,885,194 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
MailMessage mail = new MailMessage();
mail.From = new MailAddress("Mailid", "name");
SmtpClient client = new SmtpClient();
client.Host = "Hostname";
mail.CC.Add(new MailAddress("mailid"));
mail.Bcc.Add(new MailAddress("mailid"));
client.Timeout = 1000000000;
client.DeliveryMethod = SmtpDeliveryMethod.Network;
client.EnableSsl = false;
client.Port = 25;
client.Credentials = new System.Net.NetworkCredential("mailid", "password");
client.Send(mail);
Posted

 
Share this answer
 
v2
Nothing you can do except change your subject and text to avoid being classed as "junk mail" - and there are a huge number of ways your email may be classed as junk: I set rules for a huge number of things, including for example the whole of the Russian domain. Anything that originates in a .RU Domain address automatically is considered junk by my Outlook setup, so if your email originated there, there is nothing you can do to prevent my not reading it!
 
Share this answer
 

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