I wanted to develope an indicator that has an email function. Using System.Net.Mail, with the following code:-
MailMessage mail1 = new MailMessage("[email protected]", "[email protected]"); SmtpClient client1 = new SmtpClient(); client1.Port = 465; client1.Credentials = new System.Net.NetworkCredential("[email protected]","1234"); client1.DeliveryMethod = SmtpDeliveryMethod.Network; client1.UseDefaultCredentials = false; client1.Host = "smtp.email.com"; client1.EnableSsl = true; mail1.Subject = "this is a test email 12345."; mail1.Body = "this is my test email body 12345"; client1.Send(mail1);
Comment