harrison-66 / crownest

C++ Password manager with web port using Crow. Encrypted using Libsodium
https://crownest.org
MIT License
1 stars 0 forks source link

Allow Password resetting through email #2

Open harrison-66 opened 1 year ago

harrison-66 commented 1 year ago

Shouldn't be the worst, probably should use POCO library or something related.

harrison-66 commented 1 year ago

Using SMTP Server and openssl

Open Source Walkthrough

#define test_gmail_tls
    CSmtp mail;
#if defined(test_gmail_tls)
    mail.SetSMTPServer("smtp.gmail.com",587);
    mail.SetSecurityType(USE_TLS);
#elif defined(test_gmail_ssl)
    mail.SetSMTPServer("smtp.gmail.com",465);
    mail.SetSecurityType(USE_SSL);
#elif defined(test_hotmail_TLS)
    mail.SetSMTPServer("smtp.live.com",25);
    mail.SetSecurityType(USE_TLS);
#elif defined(test_aol_tls)
    mail.SetSMTPServer("smtp.aol.com",587);
    mail.SetSecurityType(USE_TLS);
#elif defined(test_yahoo_ssl)
    mail.SetSMTPServer("plus.smtp.mail.yahoo.com",465);
    mail.SetSecurityType(USE_SSL);
#endif
    mail.SetLogin("***");
    mail.SetPassword("***");
    mail.SetSenderName("User");
    // ......
    mail.Send();

Video Example