title: How to track email send over smtp via code?
body: <p>I have an application which sends 2 to 3 Emails daily from a C# programm.</p>
  
  <p>I am using my email provided by gmail.com like my email is <code>abc@xxxx.com</code> so I can logg in into gmail.com via <code>abc@xxxx.com</code>, (xxxx not gmail because I am using google mail provider).</p>
  
  <p>So to send the Email I am passing SMTPUser name <code>abc@xxxx.com</code> and password of <code>abc@xxxx.com</code>. When I am sending the Email with other user of <code>@xxxx.com</code>, lets say <code>def@xxxx.com</code> to <code>xyz@gmail.com</code>.</p>
  
  <p>Once I sent the Email (via C# program) I am trying to login after 2/3 hours into <code>abc@xxxx.com</code> via www.gmail.com , I have found the Email which I sent to <code>xyz@gmail.com</code> via c# program in SENT items of this account, even I have not found in SENT items of <code>def@xxxx.com</code>.</p>
  
  <p>So my question is how to track such emails from the www.gmail.com account? </p>
  
  <p>My question is to - when I am sent an email via c# program to xyz@gmail.com from abc@xxxx.com. after 2/3 hrs I am go to www.gmail.com loggedin with abc@xxxx.com but that sent email not found in sent items of xyz@gmail.com, similarly I logged in with def@xxxx.com and not found any email in sent items of def@xxxx.com.Where I can found that sent email in SENT ITMES Of whihc account?</p>
  
  <pre><code>public MailMessage msg;
  SmtpClient objSMTP;
  MessageStatus msgStatus;
  
  
  objSMTP = new SmtpClient("x.x.x.x");
  objSMTP.Credentials = new System.Net.NetworkCredential("abc@xxxx.com","pwd", true));
  //objSMTP.EnableSsl = true;
  MsgFrmID = "test@xxxx.com"
  
  msg.From = "def@xxxx.com";
  
  msg.To="xyz@gmail.com;"
  msg.Subject = MsgSubject;
  msg.Body = MsgData;
  objSMTP.Send(msg);
  </code></pre>