Mail : Office 365 RRS feed

  • Question

  • Hello,

    I get the following error :

    The SMTP server requieres a secure connection or the client was not authenticated
    The server response was : 5.7.57 SMPT
    Client was not authenticated to send anonymous mail during MAIL FROM

    I tried different smpt, the MX record,, no luck

    Emails are correct and their password, no luck

    Please help,

    Dim msg As MailMessage = New MailMessage()
    msg.[To].Add(New MailAddress("", "My Name"))
    msg.From = New MailAddress("", "My Name")
    msg.Subject = "This is a Test Mail"
    msg.Body = "This is a test message"
    msg.IsBodyHtml = True
    Dim client As SmtpClient = New SmtpClient()
    client.Port = 587
    client.UseDefaultCredentials = False
    client.EnableSsl = True
    client.Host = ""
    client.DeliveryMethod = SmtpDeliveryMethod.Network
    client.Credentials = New System.Net.NetworkCredential("", "mypass")
        MessageBox.Show("Message Sent Succesfully")
    Catch ex As Exception
    End Try

    Wednesday, May 29, 2019 10:33 PM


All replies