Hello,
I would like to use AlertByEmail functionality, but I do not want to store my email password in the source code. Since I already have all parameters set up in preferences, is there a way to use these parameters from my code?
Thanks,
Maxim
Size:
Color:
It's a good idea to pick up the params from the WealthLabConfig.txt. The catch here is that the
EmailPassword is encrypted and even if the encryption key could be derived by reverse-engineering the WLP client, there's no way for it to land in the open
source code of Community Components. This would be a violation.
If you're concerned about your password's safety there in fact are different options like:
1. The easiest way is to set up a dummy SMTP email account just for mail forwarding to your primary account. For example, any Gmail can be configured to forward incoming mail to a verified 3rd party account. Sign up for a new Gmail account and store this proxy account's password in the source code w/o the risk of revealing your primary account's password.
2. Follow .NET guidelines on securely storing passwords locally (or devise your own encryption class):
https://stackoverflow.com/questions/4155187/securing-a-password-in-source-codehttps://stackoverflow.com/questions/16957492/c-sharp-securely-storing-a-password-locallyetc.
Size:
Color:
Thank you. I've set up a dummy SMTP account for mail forwarding.
Size:
Color:
You're welcome.
Size:
Color: