Unable to relay with system.web.mail

From: Sergey (melnikov_at_newspaperdirect.com)
Date: 05/30/03


Date: Fri, 30 May 2003 08:24:18 -0700


You can change Exchange Server's properties to grant
permissions to relay e-mails from ip address (or subnet)
where your application is located (if it's server
application) without authorization.

Sergey

>-----Original Message-----
>I have some code where I send some email. If I send an
email to an internal
>receipient, it works great. If I trend to send to
someone outside our
>organization I get "The server response was: 550 5.7.1
Unable to relay for
>chrisworking@yahoo.com". If I turn off Anonymous
Authentication on my SMTP
>Exchange 2000 server I get another error, "The server
response was: 454
>5.7.3 Client was not authenticated".
>
>I need a way to pass logon information with the following
code (Any ideas
>would be greatly appreciated!):
>
>Imports System.Web.Mail
>
>'time to send email now
>Dim message As New MailMessage()
>With message
>..BodyFormat = MailFormat.Html
>..To = RecipientList
>..Cc = MessageFrom
>..Subject = MessageSubject
>..From = MessageFrom
>..Body = MessageBody
>End With
>SmtpMail.SmtpServer = "MyEmailServer.MyDomain.com"
>SmtpMail.Send(message)
>
>Thanks again for any help!
>Chris Thunell
>cthunell@pierceassociates.com
>
>
>
>.
>



Relevant Pages

  • Re: Which Domain Controller is doing the authenticating?
    ... Closest would mean in the same subnet. ... DC that is 100 yards away might be at times better authentication ... server then the one 10 feet away. ... >> clients to try and connect to nearest DC first (nearest DC would be one ...
    (microsoft.public.windows.server.networking)
  • Re: Which Domain Controller is doing the authenticating?
    ... The client basically requests ... authentication, the first DC able to do so responds. ... >> You can run following command on your server... ... >> would be one in same subnet ). ...
    (microsoft.public.windows.server.networking)