Click here to Skip to main content
15,917,645 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how to send email using asp.net because gmail stopped less secure app access.
what are the other way to send email

What I have tried:

using (MailMessage mail = new MailMessage())
                    {
Posted
Updated 16-Nov-22 23:46pm
v2

1 solution

If anyone sent me an email like that, I'd cancel everything I'd done with them and make absolutely certain they had no valid card info.

You store passwords in a recoverable manner - i.e. text - and you are complaining about Gmail stopping less secure apps working?

Never store passwords in clear text - it is a major security risk. There is some information on how to do it here: Password Storage: How to do it.[^]

And remember: if you have any European Union users then GDPR applies and that means you need to handle passwords as sensitive data and store them in a safe and secure manner. Text is neither of those and the fines can be .... um ... outstanding. In December 2018 a German company received a relatively low fine of €20,000 for just that.
 
Share this answer
 
Comments
Richard Deeming 17-Nov-22 4:21am    
Good job the string that contains the plain-text credentials never gets used, and the link in the email points to the recipient's local computer rather than the actual website. 🤣
OriginalGriff 17-Nov-22 4:54am    
Yeah. One thing at a time, I guess ... :laugh:

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900