C
Cantekin Guneser
i try to send mail in my wep application, i use code below
private void B_Ok_Click(object sender, System.EventArgs e)
{
MailMessage msg = new MailMessage();
msg.To = "(e-mail address removed)";
msg.From = TB_MailAddress.Text.Trim();
msg.Body = "KKTCEMLAK\n"+TB_Mail.Text;
msg.Subject = "KKTCEMLAK";
msg.BodyFormat = System.Web.Mail.MailFormat.Text;
msg.Priority = System.Web.Mail.MailPriority.Normal ;
SmtpMail.SmtpServer = "jedi";
SmtpMail.Send(msg);
}
my computer name is "jedi" olso IIS and smtp is installed, but when itryto
send it gives error like that
System.Runtime.InteropServices.COMException: The server rejected one or more
recipient addresses. The server response was: 550 5.7.1 Unable to relay for
(e-mail address removed)
how i can solve this problem or what i miss, if ucan send me examle code i
would be glad
thanks
private void B_Ok_Click(object sender, System.EventArgs e)
{
MailMessage msg = new MailMessage();
msg.To = "(e-mail address removed)";
msg.From = TB_MailAddress.Text.Trim();
msg.Body = "KKTCEMLAK\n"+TB_Mail.Text;
msg.Subject = "KKTCEMLAK";
msg.BodyFormat = System.Web.Mail.MailFormat.Text;
msg.Priority = System.Web.Mail.MailPriority.Normal ;
SmtpMail.SmtpServer = "jedi";
SmtpMail.Send(msg);
}
my computer name is "jedi" olso IIS and smtp is installed, but when itryto
send it gives error like that
System.Runtime.InteropServices.COMException: The server rejected one or more
recipient addresses. The server response was: 550 5.7.1 Unable to relay for
(e-mail address removed)
how i can solve this problem or what i miss, if ucan send me examle code i
would be glad
thanks