Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# security Networking email , +
I want to add this feature to my application. It works OK but I'm afraid of a problem here. At first, I'll talk a little about how I implement the feature. Simply, the user has to register his email address first (at the registration time). If he loses his password, he can click on a link to activate the sender. This sender will send the password (corresponding to his username) to his registered email address. I think there should have many kinds of sender here and I'm using SmtpClient to send the email. This Smtp needs a NetworkCredential, and I provide it with some valid and active Credential. I have to create some user accounts (in Gmail and Yahoo networks), apply these accounts information as the credentials for my Smtp.
 
Here is the problem, my Password restoring feature won't work if all those credentials being invalid or inactive. I mean if all the user accounts (I created in Gmail and Yahoo mail) somehow are inactive, the Smtp will be unable to send the email. The most popular reason for those accounts being inactive is there hasn't been any access/login to them for a long time (e.g: about 3 months). It is almost certain that it will happen, except I have to remind myself to login to those accounts periodically to keep them active.
 
I wonder if there is any solution for this? I've thought of keeping those accounts information in a config file but the customer won't know how to edit that config file to change the sender credential information and even they know how to, that's so inconvenient. I've also thought of popping up a window requiring information for the sender credential from user (user may use his own email account or has to create a new one), it's also inconvenient, I think so. I've also think of logging to those accounts (via my application) periodically (about once a month) to keep them active. But I wonder if there is a better solution, plus that requires the user computer to be connected to Internet and this is not always met (even there is a situation that the user computer is always off line for months or years, but suddenly one day, he loses his password, he wants to get it back and at that time, he connects his computer to the Internet and uses the password restoring feature, but he can't because all the accounts built-in for the sender credentials has been inactive because of not having any access/login to them for months/years).
 
Do you have any idea on how to solve this problem?
 
Thank you!
Posted 10-May-13 3:38am
supernorb2.6K
Edited 10-May-13 3:42am
v4

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

http://www.1and1.com/linux-web-hosting?__lf=Static[^]
 
Buy your own domain, its cheap ($5/mo), have your own email server and use that email address, that way you aren't tied to Yahoo or Gmail and its a lot more professional to get a recovery email from a business website rather than some free email service.
 
I have about 35 domains hosted with 1and1, never had any issues with them.
  Permalink  
Comments
supernorb at 10-May-13 11:54am
   
Wow, this is really worth trying. I even didn't think about this. But now I'm still a beginner programmer. I will use this solution when I'm a professional programmer. Thank you for the suggestion.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Maciej Los 315
1 OriginalGriff 273
2 Aajmot Sk 224
3 Marcin Kozub 210
4 Richard MacCutchan 200
0 OriginalGriff 7,853
1 Sergey Alexandrovich Kryukov 7,107
2 DamithSL 5,604
3 Manas Bhardwaj 4,986
4 Maciej Los 4,790


Advertise | Privacy | Mobile
Web03 | 2.8.1411023.1 | Last Updated 10 May 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100