cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted

Programatically Sent email are not in 'sent items' folder C#.net

I'm sending email through asp.net code using godaddy server. Mail sent successfully but not store in sent item folder. I am using below code :-

 

SmtpClient client = new SmtpClient();
                client.Host = "smtpout.secureserver.net";
                client.Port = 25;
                client.UseDefaultCredentials = false;
                client.Credentials = new System.Net.NetworkCredential("software@XXXXXXXX.com", "XXXXXXX");
                client.DeliveryMethod = SmtpDeliveryMethod.Network;
                client.EnableSsl = false;
                client.Send(message);
                message = null; // free up resources
                // client.Send(message);
                msg = "Successful";

 

Please suggest me at your earliest. Thanks