Sending emails through SMTP client using current logged in user
<p>I have web site set up that has some forms authentication through LDAP. I'm sending an email when the currently logged in user clicks a button, however the email is being sent from my address, and not the user. This creates a bit of confusion.</p>

<p>What I want to do is send emails using the logged users account without having them enter their user information again.</p>

<p>I basically want to do this:</p>

<pre><code>    MailMessage message = new MailMessage();
    message.From = new MailAddress(User.GetIdentity);
    message.Subject = Subject;
    message.Body = body;
    message.IsBodyHtml = true;
    SmtpClient client = new SmtpClient("address.qweqwe", 25);
    client.Credentials = new System.Net.NetworkCredential(User.Identity);
    client.Send(message);
</code></pre>

<p>Getting the users email isn't a big deal, I've already got methods for that, but I'm not sure how I should go about getting their credentials. They've already logged on to access the page, and I know they have an LDAP email.</p>

<p>Is there any way to do this without forcing the user to log in again just to send the email?</p>
