sending mail problem?

  • Thread starter Thread starter Cantekin Guneser
  • Start date Start date
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
 
Cantekin,

I am not positive, but it seems like you were rejected because you might
be an open relay. Is the server you are sending mail from on any open-relay
lists?

Hope this helps.
 
Back
Top