Skip to content

supertoha/TmpMail

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TmpMail

Documentation: https://github.com/supertoha/TmpMail

Get API Key: https://rapidapi.com/supertoha/api/temporary-email-service

NuGet TmpMail

NuGet Version NuGet Downloads

Features:

  • Create mailbox
  • Get letters
  • Get attached files
  • Remove mailbox
  • Remove letter
  • Send emails
  • Reply
  • Get mailboxes

Sample:

internal class Program
{
    private async static Task Main(string[] args)
    {
        using var tmpMail = new TmpMail.TmpMail("<YOUR API KEY>"); // https://rapidapi.com/supertoha/api/temporary-email-service
        var mailBox = await tmpMail.CreateMailboxAsync();
        Console.WriteLine($"Mailbox is created {mailBox.Email}");

        Console.WriteLine("Press any key to get emails");
        Console.ReadKey();

        // print all emails
        var emails = await mailBox.GetEmailsAsync();
        foreach (var email in emails)
        {
            Console.WriteLine(email);
        }

        Console.WriteLine("Press any key to exit");
        Console.ReadKey();

        // delete mailbox
        await mailBox.DeleteAsync();
    }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages