My Emails are successfully sent but it is not showing in sent item.
What I have tried:
MailMessage mail = new MailMessage();
mail.To.Add("email");
mail.From = new MailAddress("email");
mail.Subject = "Test";
mail.Body = "Test";
mail.IsBodyHtml = true;
SmtpClient smtp = new SmtpClient("smtp.****.**.in", 25);
smtp.UseDefaultCredentials = false;
smtp.Credentials = new System.Net.NetworkCredential("email", "**");
smtp.Timeout = 1200000;
smtp.DeliveryMethod = SmtpDeliveryMethod.Network;
smtp.EnableSsl = true;
ServicePointManager.ServerCertificateValidationCallback = delegate (object s, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) { return true; };
smtp.Send(mail);