RE: Unable to relay with system.web.mail

From: Felix Wu [MSFT] (felixwu_at_online.microsoft.com)
Date: 05/28/03

  • Next message: Matt: "Security Problem?"
    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
    >
    >
    >
    >


  • Next message: Matt: "Security Problem?"

    Relevant Pages

    • Re: Allowing POP email retrieval
      ... POP3 email is widely used in many corporations, ... opinions and haven’t found much. ... still welcome the opinions of others, including yours Chris, on this ... >> seems there should be the ability to require authentication. ...
      (microsoft.public.windows.server.sbs)
    • Re: Entourage 2004 - Delegate - "not connected"...
      ... Try turning off Forms Based Authentication ... >> at the server end, but I have no idea what settings would need to be changed ... >> It also seems for anyone else that is trying to get the delegate feature to ... >> Chris Hart ...
      (microsoft.public.mac.office.entourage)
    • Re: AP with built-in authentication
      ... ~ database to do this authentication. ... Aironet APs can be configured with a local RADIUS server, ...
      (alt.internet.wireless)
    • Re: Authenticating users in an n-Tier/layer architecture
      ... On my ASP.NET front end I am using forms authentication ... However I need to pass authentication and access level ... > provide a seamless security system? ...
      (microsoft.public.dotnet.framework.aspnet.security)
    • Re: Unable to relay with system.web.mail
      ... relaying only for authenticated user. ... support SMTP authentication. ... If I turn off Anonymous Authentication on my ... > Dim message As New MailMessage ...
      (microsoft.public.dotnet.framework.aspnet.security)