Posted on: 4/21/2011 1:02:02 PM | Views : 286

Hi All,
I am struggling with this problem from yesterday.
What I have done so far?
I have used the code to send an email using local smtp server. Code is(C#.Net) 
String senderAddress = string.Empty; String receiveraddress = string.Empty; String emailSubject = string.Empty; String emailMessageText = string.Empty; MailMessage mail = new MailMessage(); SmtpClient client = new SmtpClient("smtp.gmail.com",587); private void btnEmail_Click(object sender, EventArgs e) { try { //Get the Values of Controls senderAddress = txtSenderEmail.Text; receiveraddress = txtReceiverEmail.Text; emailSubject = txtSubject.Text; emailMessageText = txtMessageBody.Text; //Pass the Values mail.From = new MailAddress(senderAddress, "xxxxxxxxxx", System.Text.Encoding.UTF8); ...

Go to the complete details ...