Ok,i'm trying to send mail with this library http://www.freevbcode.com/ShowCode.Asp?ID=109
And i'm getting the following error "Authentication failed".What cause this?Does anyone knows?Note that username,password and the SMTP and POP3 hosts are correct.I really don't know what's wrong.Sorry if that's wrong place for this thread.Code:Private Sub Command1_Click() Set poSendMail = New vbSendMail.clsSendMail poSendMail.UsePopAuthentication = True poSendMail.ConnectTimeout = "50" poSendMail.SMTPHost = "smtp.abv.bg" poSendMail.SMTPPort = "25" poSendMail.POP3Host = "pop3.abv.bg" poSendMail.UserName = "whatever" poSendMail.Password = "whatever" poSendMail.From = "[email protected]" poSendMail.FromDisplayName = "whatever" poSendMail.Recipient = "[email protected]" poSendMail.RecipientDisplayName = sashko poSendMail.ReplyToAddress = "[email protected]" poSendMail.Subject = "whatever" poSendMail.Message = "whatever" poSendMail.Send Set poSendMail = Nothing End Sub




Reply With Quote