hi this is my coding using
public
{
objMail.From = objMail_fromaddress;
objMail.To.Add(objMail_toaddress);
objMail.Subject =
objMail.Body =
objMail.IsBodyHtml =
objMail.Priority =
smtpClient.Host =
smtpClient.Credentials =
smtpClient.Send(objMail);
Response.Write(
}
}my error is Send failure: System.Net.Mail.SmtpFailedRecipientException: Mailbox unavailable. The server response was: 5.7.1 Unable to relay for [email protected] at System.Net.Mail.SmtpTransport.SendMail(MailAddress sender, MailAddressCollection recipients, String deliveryNotify, SmtpFailedRecipientException& exception) at System.Net.Mail.SmtpClient.Send(MailMessage message) at email.Page_Load(Object sender, EventArgs e) in c:\Documents and Settings\ramamoorthy\My Documents\Visual Studio 2005\WebSites\mail\email.aspx.cs:line 34