RE: Unable to relay with system.web.mail
From: Felix Wu [MSFT] (felixwu_at_online.microsoft.com)
Date: 05/28/03
- Previous message: Chris Roden: "Re: FormsAuthentication"
- In reply to: Chris Thunell: "Unable to relay with system.web.mail"
- Next in thread: Sergey: "Unable to relay with system.web.mail"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Wed, 28 May 2003 05:41:44 GMT
Hi Chris,
I agree with Matjaz. The current implementation of SmtpMail does not
support SMTP authentication. To resolve this problem, you can search "
SmtpMail authentication dotnet" in the Google (http://groups.google.com).
You may find some third party components which support authentication
feature.
Hope this helps.
Regards,
Felix Wu
=============
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>From: "Chris Thunell" <cthunell@pierceassociates.com>
>Subject: Unable to relay with system.web.mail
>Date: Tue, 27 May 2003 08:15:48 -0400
>Lines: 31
>X-Priority: 3
>X-MSMail-Priority: Normal
>X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
>Message-ID: <OpDh5lEJDHA.2764@tk2msftngp13.phx.gbl>
>Newsgroups:
microsoft.public.dotnet.framework.aspnet,microsoft.public.dotnet.framework.a
spnet.security,microsoft.public.dotnet.framework.clr,microsoft.public.dotnet
.languages.vb
>NNTP-Posting-Host: 24-249-184-208.dsl.lan2wan.com 208.184.249.24
>Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftngp13.phx.gbl
>Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.aspnet.security:5317
microsoft.public.dotnet.framework.clr:6823
microsoft.public.dotnet.languages.vb:110304
microsoft.public.dotnet.framework.aspnet:148157
>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.security
>
>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
>
>
>
>
- Previous message: Chris Roden: "Re: FormsAuthentication"
- In reply to: Chris Thunell: "Unable to relay with system.web.mail"
- Next in thread: Sergey: "Unable to relay with system.web.mail"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|