EHLO error messages when trying to send email

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
 
C

Cheri Reed

Sorry for the double posting - it said the first post didn't work. One of
these can be deleted.
 
C

Cheri Reed

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top