SkillAgentSearch skills...

TempMail.NET

Temporary email library for .NET (wrapper) based on 1secmail.com API

Install / Use

/learn @Erol444/TempMail.NET
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

.NET TempMail library

Based on 1secmail.com API

Features
  • Create new mailbox(es)
  • Check the mailbox for new emails
  • Fetch an email
  • Wait for an email based on the specified requirement(s)
Add using statement
using TempMail;
Code example
async Task TemporaryEmailDemo()
{
    using (var tempMail = new TemporaryMail())
    {
        var mailbox = await tempMail.GenerateRandomMailbox();

        // Some code eg. await registrationService.Register(mailbox);

        // Email address of the sender has to contain "example.com"
        // and email must not be older than 2 minutes
        var email = await tempMail.WaitForEmail(mailbox,
            x => x.from.Contains("example.com") && DateTime.Now < x.GetDate().AddMinutes(2)
            );

        // Some code eg. parse email body for the activation code / url

        Console.WriteLine(email.body);
    }
}

Related Skills

View on GitHub
GitHub Stars4
CategoryDevelopment
Updated3mo ago
Forks0

Languages

C#

Security Score

72/100

Audited on Dec 26, 2025

No findings