Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

smtp authentication

Status
Not open for further replies.

monkle

Programmer
Feb 11, 2004
132
US
I am working on a mail client that uses vb sendmail. All of my mail is being returned to me, with the following error message.

You must SMTP Authenticate

Code:
        With SendMail
            .SMTPHostValidation = VALIDATE_HOST_DNS
            .EmailAddressValidation = VALIDATE_SYNTAX
            .SMTPHost = Server
            .UsePopAuthentication = True
            .POP3Host = Hostname
            .Username = Username
            .Password = Password
            .EncodeType = MIME_ENCODE
            .AsHTML = True
            .Subject = txtSubject.Text
            .From = SenderEMail
            .FromDisplayName = Sendername
            .Recipient = txtUser
            .RecipientDisplayName = txtUser
            .message = txtMessage.Text
            .Send
        End With

I thought that I was authenticating in the code. I have found almost no help the vb sendmail.dll functions, and nothing that has done me any good. If any advice can be offered, or you can point me in the direction of a good reference guide that addresses this issue, it would be greaty appreciated. Note, yes, I have looked at msdn.com, and found nothing helpful.
 
try

Code:
           .SMTPHost = Server
           .UseAuthentication = True
instead of
Code:
           .SMTPHost = Server
            .UsePopAuthentication = True


Take Care

Matt
If at first you don't succeed, skydiving is not for you.
 
After changing the line .UsePopAuthentication to .UseAuthentication, it errors out with the following messagebox:

Code:
Error while sending: 

504 Mechanism not supported
 
vbSendMail Documentation said:
...Note that vbSendMail supports LOGIN Authentication only. It does not support other forms of Authentication and it does not support encryption.

by the sound of it, the server you are trying to connect to requires another form of authentication...

Take Care

Matt
If at first you don't succeed, skydiving is not for you.
 
I use outlook express to check and send mail right now, and the settings for sendmail server are as follows:

Outgoing mail server:
My Server Requires Authentication (checked)

And under settings:
Use same settings as my incoming mail server (selected)


If this is a limitation of the sendmail function, do you have any suggestions for an alternate form of connecting to the server?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top