EHLO error messages when trying to send email

  • Thread starter Thread starter Cheri Reed
  • Start date Start date
C

Cheri Reed

Hello,

This snippet of code has worked successfully for many of our clients. We
now have one client where it's failing and I'm not sure why.

Here's the code for sending a simple email:

Dim SMTP As New SmtpClient(strIP)
SMTP.Credentials = New Net.NetworkCredential(strEmailUID, strEmailPWD)
SMTP.Send(Message)


For this one particular client, using their email credentials, the get "EHLO
requires domain address". Then I had them try my
emails credentials and they received "Syntax: EHLO hostname".

On our test machine, both sets of credentials work successfully.

So I'm assuming this must be something in their environment that's causing
the problem. Can anyone enlighten me?

Thanks
 
Sorry for the double posting - it said the first post didn't work. One of
these can be deleted.
 
Just to answer my own problem...

Turns out the client was using Exchange Server and needed to provide the
exhange server name not the outgoing SMTP server....
 
Back
Top