Recieving Access denied - Invalid HELO name

Asked by:
penton6 / 16 Points
Time:
2012-09-06 11:31 pm EST
Category:
Email Troubleshooting
Hits:
985
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

To ask this user for more information, please first login.

To submit an answer, please login.

ANSWERS

0

ScottM
Staff
13,008 Points
2012-09-07 9:35 am EST
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

To submit a comment on this answer, please first login.

Want to share this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!

Help 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.