...
MailMessage MyMail = new MailMessage();
MyMail.Fields.A dd("http://schemas.microso ft.com/cdo/configuration/smtpau
thenticate", "1");
MyMail.Fields.A dd("http://schemas.microso ft.com/cdo/configuration/sendus
ername", "UserName") ;
MyMail.Fields.A dd("http://schemas.microso ft.com/cdo/configuration/sendpa
ssword", " password");
And by using the tool I mentioned before, this user name and password
can be
seen Easley.
How can I hide this data?
Solution is simple enough.
Please, do not keep real "UserName" and "password" in your source code.
Hide username and password to database or keep them (encrypted!) in
web.config file. Then (during run time) extract user name and password
from database or web.config file, decrypt and use them in
MyMail.Fields.A dd...
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!