Setting up Email in my .NET application

Scott McDaniel (Microsoft Access MVP - EE MVE )
Scott McDaniel (Microsoft Access MVP - EE MVE ) used Ask the Experts™
I'm using MailKit and MimeKit in my VB.NET application to send out emails. In order to do this, the end user must configure settings like SMTP Server, Port, etc.

All of the end users have email clients installed, like Outlook or Thunderbird. Is there some way for my program to use the same credentials as those installed clients without the user having to enter them again? I'm assuming the answer is no, but wanted to ask those more experienced in this sort of thing.
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Not reliably. There are tools out there like "Firefox decrypt" that have code to extract credentials for Thunderbird but even if it worked one day, the security storage mechanism could change at any time and cause errors. The same goes for any other email client. Usually credentials are encrypted for protection so make sure that you are following that practice and encrypting them for your application as well.
Most Valuable Expert 2012
Top Expert 2014


That's what I thought, thanks for confirming this.

I do encrypt all of those settings before storing them.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial