Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 10th, 2004, 04:53 PM
Authorized User
 
Join Date: Mar 2004
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to frankv25
Default error with smtpMail.Send(MyMail)

Hello,

I get the following error running my application on the internetserver.

The server rejected one or more recipient addresses. The server response was: 553 sorry, relaying denied from your location [216.180.106.13] (#5.7.1)

This is the code I use

        Dim MyMail As MailMessage = New MailMessage()
        MyMail.From = sendFrom
        MyMail.To = sendTo
        MyMail.Subject = mailSubject
        MyMail.Body = mailBody
        MyMail.Cc = sendCC

        SmtpMail.SmtpServer = "mail.crestcomputers.com"
        SmtpMail.Send(MyMail)


It can only send mail to adresses known on the server.
I'm using MS VS.Net 1.0

Thank you


Frank Vandeven
Belgium
__________________
Frank Vandeven
Belgium
 
Old September 11th, 2004, 12:25 AM
Authorized User
 
Join Date: Sep 2004
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to nashnash
Default

go in IIS and add your Ip in relay it will work fine...:)

 
Old September 11th, 2004, 11:13 PM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

The problem is that the mail server sees your message as a mail relay (hence the error message). Usually, to send a message thru a properly set up mail server (i.e., no open relay) you need to connect to it under 1 of three conditions:
1) You are connecting to a mail server from within the mail server's own internal network. This is usually the case with a corporate mail server on the corporate LAN/WAN.
2) You have connected to this mail server already using POP to check a POP mailbox and logged into it successful. This is basically IP authentication.
3) You log in using SMTP authentication to prove you have the authority to send messages. I don't believe that the .NET SMTP functionality has this functionality.
 
Old October 14th, 2004, 05:33 PM
Authorized User
 
Join Date: Mar 2004
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to frankv25
Default

Dear Planoi,

I think i'm in sittuation 2.
How can I clear this problem.
I allready used my IP address instead of mail.xxx.be but it aint working.

Thank you.


Frank Vandeven
Belgium
 
Old January 3rd, 2005, 03:53 AM
Registered User
 
Join Date: Jan 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by frankv25
 Hello,

I get the following error running my application on the internetserver.

The server rejected one or more recipient addresses. The server response was: 553 sorry, relaying denied from your location [216.180.106.13] (#5.7.1)

This is the code I use

        Dim MyMail As MailMessage = New MailMessage()
        MyMail.From = sendFrom
        MyMail.To = sendTo
        MyMail.Subject = mailSubject
        MyMail.Body = mailBody
        MyMail.Cc = sendCC

        SmtpMail.SmtpServer = "mail.domain.com"
        SmtpMail.Send(MyMail)


It can only send mail to adresses known on the server.


Thank you


Sona
Tamil Nadu





Similar Threads
Thread Thread Starter Forum Replies Last Post
About SmtpMail.Send() Method hhkris4u ASP.NET 1.0 and 1.1 Professional 3 February 6th, 2007 04:24 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.