Quote Originally Posted by mendhak View Post
See my post just before yours (we posted at the same time so you might have missed it. Or you just don't like me )

Your SQL connection string would have Integrated Security in it.

Data Source=myServerAddress;Initial Catalog=myDataBase;Integrated Security=SSPI;

Not sure how you're connecting to Exchange though.
For Exchange, I am using the SMTPClient.Credentials to pass the network credetials(right now I have got the creditails in the config file of one user and all teh mails will be sent using this user identity. I want to send the mail with user identity who has logged in.)

I want to change this though.

And as you said we posted at the same time and I did miss your previous post. and for the database I am using integrated security as you have specified.