i have configured my mail account to Microsoft Outlook, if i send mail from outlook it goes perfectly and a copy is stored in sent items, but when i try to send it from my vb.net windows application the mails are sent in good manner but copy of mail is not stored in sent items, how can i achieve this thanks in advance
my code is as follows
Dim mail As New MailMessage()
mail.From = New MailAddress("mail1@test.in")
mail.To.Add("mail2@test.in")
mail.Subject = "test"
mail.Body = "test"
Dim smtp As New System.Net.Mail.SmtpClient("smtp.rediffmailpro.com", 25)
smtp.EnableSsl = False
smtp.Credentials = New System.Net.NetworkCredential("mail1@test.in", "xyz123")
smtp.Send(mail)
MsgBox("email sent")