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 ...