Recieving Access denied - Invalid HELO name

Asked by:
penton6
Time:
2012-09-07 3:31 am
Category:
Email Troubleshooting
Hits:
634
On 04-Sept-2012 the code you see below was executing error free. Today on 06-Sept-2012 it now generates the error message "Recieving Access denied - Invalid HELO name". I have read your 550 access denied article and understand what you are saying. However in this specific case I have a simple SMTP client executing in code using the Microsoft Net.Mail.SmtpClient class library. I cannot see how to get around this problem through any code changes. Any suggestions (not necessarily to the code) but otherwise?



Private Sub btnSend_Click(sender As Object, e As System.EventArgs) Handles btnSend.Click

mail = New Net.Mail.MailMessage()

Try

'create the mail message
Mail.IsBodyHtml = False

'set the addresses
mail.From = New Net.Mail.MailAddress(tbFrom.Text)
mail.To.Add("admin@pentongis.com")

'set the content
mail.Subject = tbSubject.Text
mail.Body = tbMSGBody.Text
mail.DeliveryNotificationOptions = Net.Mail.DeliveryNotificationOptions.OnFailure

If chkMap.Checked Then
Dim a As New Mail.Attachment(tbSnapshot.Text)
mail.Attachments.Add(a)
End If

'send the message - currently fails
smtp = New Net.Mail.SmtpClient("mail.pentongis.com")

smtp.Port = 587
smtp.EnableSsl = False

smtp.DeliveryMethod = Net.Mail.SmtpDeliveryMethod.Network
smtp.UseDefaultCredentials = False

'to authenticate we set the username and password properites on the SmtpClient
smtp.Credentials = New Net.NetworkCredential(tbFrom.Text, tbPassword.Text)

clsAppHelper.MakeCylonGlider(pbMain)
Cylon_Start()

btnCancel.Enabled = True
AddHandler smtp.SendCompleted, AddressOf SendCompletedCallback

Dim userState As String = "test message1"
smtp.SendAsync(mail, userState)

Catch ex As Exception
clsErrorHandler.ShowErrorHandler(ex.ToString())

End Try

End Sub

You must login before you can ask a follow up question.

You must login before you can submit an answer.

OTHER ANSWERS

0

ScottM
2012-09-07 1:35 pm
Hello penton6,

Typically this error occurs when an email client is not authenticating with the SMTP server. The sender will want to ensure they have the SMTP authentication setting activated within their email client. In this case, it may need additional code settings and variables (for email account username and password) in the code to do the SMTP authentication check.

Best Regards,
Scott M

You must login before you can post a comment about this answer.

Like this Question?

Support Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.