Unable to send emails using Yahoo SMTP wtih Rebex component
Following are the details
SMTP Server: smtp.mail.yahoo.com OR smtp.bizmail.yahoo.com
Username: sparshaims360@yahoo.com
Password: *********
Port No: Not mentioning the port number
sample code: We are using the below sample code,
Imports Rebex.Net
Imports Rebex.Mail
Imports Rebex.Mime.Headers
Module Module1
Sub Main()
Dim mail As New Rebex.Mail.MailMessage()
mail.From = New Rebex.Mime.Headers.MailAddressCollection("sparshaims360@yahoo.com")
mail.To = New Rebex.Mime.Headers.MailAddressCollection("dinakarkulkarni@sparshcom.net")
mail.Subject = "This is a simple message"
mail.BodyText = "Hello, Joe!"
mail.BodyHtml = "Hello, Joe!"
Dim smtp As New Rebex.Net.Smtp()
smtp.Connect("smtp.mail.yahoo.com")
smtp.Login("sparshaims360@yahoo.com", "***")
smtp.Send(mail)
smtp.Disconnect()
End Sub
End Module
We are getting the following error with the above code.
SmtpException was unhanled. "None of the supported authentication methods is accepted by the server."
Please help us to resolve the issue.
Thanks & Regards
Naga Suresh D