protected void Button1_Click(object sender, EventArgs e)
{
MailMessage message = new MailMessage();
message.From = new MailAddress(YourEmail.Text.ToString());
message.To.Add(new MailAddress("purohit.mith@gmail.com"));
message.Subject = "Message via mith from " + YourName.Text.ToString();
message.Body = Comments.Text.ToString();
SmtpClient client = new SmtpClient();
client.Host = "203.92.50.112";
client.Send(message);
}
// this is what i used to send the email
// but i get the exception as "Mailbox unavailable. The server response was: 5.7.1 Unable to relay for [email]purohit.mith@gmail.com[/email]".
anybody can help me out........