title: Sending email from SMTP server without the need to enter password
body: <p>We have an application that prompts the user to login using his ldap username and password, from that I can get the user email but not the email password, My goal is to send email from this user's mail without the need to prompt the user for his email password.</p>
  
  <p>I am using the following code to send email</p>
  
  <pre><code>NetworkCredential loginInfo = new NetworkCredential("fromemail@mydomain.com","mypassword");
  MailMessage msg = new MailMessage();
  sg.From = new MailAddress("fromemail.lb@mydomain.com");
  msg.To.Add(new MailAddress("toemail.lb@mydomain.com"));
  msg.Subject = "test";
  
  SmtpClient client = new SmtpClient("smtp.mydomain.com");
  client.EnableSsl = true;
  client.UseDefaultCredentials = true;
  client.Credentials = loginInfo;
  client.Send(msg);
  </code></pre>
  
  <p>IS is is possible to send email without password? some thing like email spoofing, If not possilbe, is it possible to fake it, like send all emails form one email, but make the email look as if it is coming from the logged in user's email?</p>
  
  <p>Thanks </p>