Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: sending email using winsock or internet transfer control

0 views
Skip to first unread message

Richard T. Edwards

unread,
Oct 14, 2005, 4:40:32 PM10/14/05
to
Okay, user name and password needs to be encoded:

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


John G. Howatt

unread,
Apr 3, 2008, 6:57:01 PM4/3/08
to

--
John G. Howatt

John G. Howatt

unread,
Apr 3, 2008, 6:59:08 PM4/3/08
to
To Richard T. Edwards,
How do you encode in byte format?
--
John G. Howatt

Shaw@discussions.microsoft.com Kowshik Shaw

unread,
Dec 12, 2008, 5:38:02 AM12/12/08
to
Dear Sir,

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

0 new messages