sending mail problem?

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
 
N

Nicholas Paldino [.NET/C# MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top