Unable to relay with system.web.mail
From: Sergey (melnikov_at_newspaperdirect.com)
Date: 05/30/03
- Next message: Jonathan Folland: "failing to retrieve memberOf collection"
- Previous message: saucer: "Re: Problem with Authentication...."
- In reply to: Chris Thunell: "Unable to relay with system.web.mail"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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
>
>
>
>.
>
- Next message: Jonathan Folland: "failing to retrieve memberOf collection"
- Previous message: saucer: "Re: Problem with Authentication...."
- In reply to: Chris Thunell: "Unable to relay with system.web.mail"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|