N
NishWishs
i was trying to send comments from my application(using a wizard) to
my email.
Iam working on same problem today from a diffrent IP location from
yeterday, iam getting fallowing error
A socket operation was attempted to an unreachable network
209.85.237.25:25
and the code i written was
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 client = new SmtpClient(server, port);
SmtpClient mailClient = new SmtpClient("SMTPserver",25);
mailClient.Host = mailServerName;
mailClient.Credentials =
CredentialCache.DefaultNetworkCredentials;
mailClient.Send(message);
message.Dispose();
}
}
Plz Help ME
my email.
Iam working on same problem today from a diffrent IP location from
yeterday, iam getting fallowing error
A socket operation was attempted to an unreachable network
209.85.237.25:25
and the code i written was
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 client = new SmtpClient(server, port);
SmtpClient mailClient = new SmtpClient("SMTPserver",25);
mailClient.Host = mailServerName;
mailClient.Credentials =
CredentialCache.DefaultNetworkCredentials;
mailClient.Send(message);
message.Dispose();
}
}
Plz Help ME