My SMTP server requires authentication.
I understand the next 2 SendData commands:
'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
I understand the concept of the next 2 SendData commands, but I don’t know how to do the encoding.

'Send Username -- in encoded byte format
Winsock1.SendData "ccVkd2FyQHB3cHNxdWFyZWQuY29t" & vbCrLf

'Send password -- in encoded byte format
Winsock1.SendData "bBVkZHlnaXJsaWU=" & vbCrLf
I used the above SendData commands, and my server decoded them, but of course I got this response: ‘535 5.7.0 authentication failed’ because they are not my Username and password.
I need to know how to encode my Username and password to be in the same format as the Username and password above.