Email Client for Temp-Mail.org


Keywords
temp-mail, email, mail, client, email-client
Install
Install-Package Yove.Mail -Version 1.2.0

Documentation

Yove.Mail - Email client for Temp-Mail.org

NuGet version Downloads Target

Buy Me A Coffee

Nuget: https://www.nuget.org/packages/Yove.Mail/

Install-Package Yove.Mail
dotnet add package Yove.Mail

Setup

TempMail Mail = new TempMail
{
    Proxy = new ProxyClient("195.208.172.70", 8080, ProxyType.Http),
    Proxy = new ProxyClient("195.208.172.70", 8080, ProxyType.Socks4),
    Proxy = new ProxyClient("195.208.172.70", 8080, ProxyType.Socks5),
    Proxy = new ProxyClient("195.208.172.70:8080", ProxyType.Http)
}

string Domain = Mail.Domains[new Random().Next(0, Mail.Domains.Count - 1)];

string Address = Mail.Set("yove", Domain); // Set email address
string Address = Mail.SetRandom(); // Set random email address

Mail.NewMessage += async (e) =>
{
    Console.WriteLine($"{e.TextBody} / {e.HtmlBody} / {e.From} / {e.Subject} / {e.Date}");

    await e.Attachments[0].Download("/Users/sunny/Documents/"); // Download attachment file to path /Users/sunny/Documents/

    bool IsDelete =  await e.Delete(); // Delete this message

    Mail.Dispose(); // Be sure to exit the client when you finish working with it
};

List<Message> Messages = Mail.Messages; // Return List messages from this Email

Message Message = Mail.GetMessage("Id Message"); // Return message from Id 0

await Mail.Delete(); // Delete email address

Other

If you are missing something in the library, do not be afraid to write me :)

thesunny@tuta.io