Menu

The message is not sended

kikoloche
2015-04-17
2019-01-30
  • kikoloche

    kikoloche - 2015-04-17

    I receive this message in Output

    Reply to b64 2: 334 blablabla Code :334
    Reply to b64 3: 235 2.0.0 OK Code :235

    but the message is not sended.

    Here is my VB code:

    Imports AegisImplicitMail

    Public Class MailerAegis
    Inherits Mailer

    Private CSmtp As MimeMailer
    
    Public Sub New(Interval As Integer, ConfigPath As String, Domain As String)
        MyBase.New(Interval, ConfigPath, Domain)
    End Sub
    
    Public Overrides Sub Close()
        CSmtp.Dispose()
    End Sub
    
    Public Overrides Sub Open()
        CSmtp = New MimeMailer("smtp.mail.yahoo.com", 465)
        CSmtp.User = "user@yahoo.com"
        CSmtp.Password = "********"
        CSmtp.SslType = SslMode.Ssl
        CSmtp.AuthenticationMode = AuthenticationType.Base64
    End Sub
    
    Public Overrides Sub Send(MailAddresses As List(Of String), Subject As String, Body As String)
        Dim mail As New MimeMailMessage()
        mail.From = New MimeMailAddress("user@yahoo.com", "From")
        For Each MailAddress As String In MailAddresses
            mail.To.Add(MailAddress)
        Next
        mail.Subject = Subject
        mail.Body = Body
        mail.IsBodyHtml = True
        CSmtp.SendMail(mail)
    End Sub
    

    End Class

     

    Last edit: kikoloche 2015-04-17
  • Araz Farhang Dareshuri

    Are you sure your server is using Base64 authentication?

     
  • Giovanni De Rosa

    In my case, i get "250 2.1.0 OK" as response from SendMail(...), but no mail sended.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.