'Tell the server this is an extended protocol connection
Winsock1.SendData "EHLO mail.someserver.com" & vbCrLf
'Tell the server you want to log in
Winsock1.SendData "AUTH LOGIN" & vbCrLf
'Send Username -- in encoded byte format
Winsock1.SendData "ccVkd2FyQHB3cHNxdWFyZWQuY29t" & vbCrLf
'Send password -- in encoded byte format
Winsock1.SendData "bBVkZHlnaXJsaWU=" & vbCrLf
'Tell the server to get ready to accept mail
Winsock1.SendData "MAIL FROM: <y...@Midastouch.com>" & vbCrLf
"Roundy" <Rou...@discussions.microsoft.com> wrote in message
news:19DB4759-4E1D-4EC0...@microsoft.com...
>I am able to send messages without a problem. But, if the server requires
> authentication, i.e. username and pwd it fails. Need help with how to
> provide authentication information. I read up on RFC 2554, but still am
> unsure what the code would look like for the auth command. I am trying to
> do
> the same thing as outlook does when you check the box that says my server
> requires authentication and you enter your username and password.
I have read your answer in
"http://www.microsoft.com/communities/newsgroups/en-us/default.aspx?dg=microsoft.public.vb.controls.internet&tid=19db4759-4e1d-4ec0-82dc-8e1dcecb147c&cat=&lang=&cr=&sloc=&p=1".
But it is not clear to me 'How to send user id & password to server'. Please
send me what is the process of encoded byte format. i.e. my id is
kowsh...@yahoo.com, how could I encode the id & password in encoded byte
format?
I am waiting for you reply.
Thanking you in anticipation.
Sincerely yours,
Kowshik Shaw