Class Library of project "Remail". Contains MailService and Mail class for storing and managing emails. Made in .NET Standard 2.1
Services:
Models:
Contains authorization, email requests, and creation. Heart of this library. Only Gmail compatible. Dependencies include MailKit and MimeKit.
Example:
Check if user credentials are correct:
public bool IsCorrectLoginCredentials(string username, string password)
{
try
{
using (var client = new ImapClient())
{
client.Connect("imap.gmail.com", 993, true);
client.Authenticate(username, password);
client.Disconnect(true);
return true;
}
}
catch (Exception)
{
return false;
}
}
Encrypts data for the purpose of hiding user credentials. Uses it's own passphrase for encrypting/decrypting.
Class that contains user credentials for use of mail server.
Class structure for storing emails.