N
NishWishs
iam trying to send the comments from my application to my email using
smtp
and code i written is
protected void Wizard1_FinishButtonClick(object sender,
WizardNavigationEventArgs e)
{
SendMail(emailTB.Text, commentsTB.Text);
}
private void SendMail(string from, string body)
{
string mailServerName = "SMTP.google.com";
MailMessage message = new MailMessage(from,
"(e-mail address removed)", "feedback", body);
SmtpClient mailClient = new SmtpClient();
mailClient.Host = mailServerName;
mailClient.Send(message);
message.Dispose();
}
but iam getting following error plz help
Mailbox unavailable. The server response was: 5.7.1
<[email protected]>... Relaying denied
smtp
and code i written is
protected void Wizard1_FinishButtonClick(object sender,
WizardNavigationEventArgs e)
{
SendMail(emailTB.Text, commentsTB.Text);
}
private void SendMail(string from, string body)
{
string mailServerName = "SMTP.google.com";
MailMessage message = new MailMessage(from,
"(e-mail address removed)", "feedback", body);
SmtpClient mailClient = new SmtpClient();
mailClient.Host = mailServerName;
mailClient.Send(message);
message.Dispose();
}
but iam getting following error plz help
Mailbox unavailable. The server response was: 5.7.1
<[email protected]>... Relaying denied