i use this method to send emails from Excel:
Dim Mail As New Message
Dim Config As Configuration
Set Config = Mail.Configuration
Config(cdoSendUsingMethod) = cdoSendUsingPort
Config(cdoSMTPServer) = "smtp.gmail.com"
Config(cdoSMTPServerPort) = 25
Config(cdoSMTPAuthenticate) = cdoBasic
Config(cdoSMTPUseSSL) = True
Config(cdoSendUserName) = "sender@gmail.com"
Config(cdoSendPassword) = "password123"
Config.Fields.Update
But as you can see the password is shown as a plain text in the code.
How can i hide/encrypt that line (password) or this part/module of my vba-code? (I've read something about to make a dll from the code, but don't know how.)
Thank You!