i want to send email using zohomail, this is the code that i am using but its not working, timeout error is coming. Here i have hidden my zohomail credentials and i am using port no 465 , what modification is required. Please suggest ASAP.
Literal1.Text = url.ToString();
System.Net.Mail.MailAddress from = new System.Net.Mail.MailAddress("", "From Test");
System.Net.Mail.MailAddress to = new System.Net.Mail.MailAddress(Session["email"].ToString(), Session["email"].ToString());
System.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage(from, to);
message.Subject = "Congratulations! Receipt No: " + Session["OID"].ToString();
message.Body = url.ToString();
System.Net.NetworkCredential mailAuthentication = new System.Net.NetworkCredential("", "");
System.Net.Mail.SmtpClient mailClient = new System.Net.Mail.SmtpClient("smtp.zoho.com", 465);
mailClient.EnableSsl = true;
mailClient.UseDefaultCredentials = false;
mailClient.Credentials = mailAuthentication;
message.IsBodyHtml = true;
mailClient.Send(message);