Mailer Sample, verizon authentication required RRS feed

  • Question

  • I've built the Mailer.cs sample from the Microsoft .NET Framework SDK Code Samples.

    I'm specifying the mail server name as "outgoing.verizon.net", the same as I have in Outlook.

    When I send a test mail from Mailer, SmtpClient throws an exception with this message: "Mailbox unavailable. The server response was: 5.7.1 Authentication Required"

    What is SmtpClient looking for, and how to i give it what it wants?
    Friday, October 28, 2005 6:55 PM


  • The missing lines from the sample are:

       using System.Net;


       mailClient.Credentials = new NetworkCredential( username, password );

    where username and password are unique to me.

    Friday, October 28, 2005 7:47 PM