Skip to content

liamg/guerrilla

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📨👤 guerrilla

A command-line tool (and Go module) for https://www.guerrillamail.com/.

Create a temporary email address in the terminal to quickly sign up for services and receive verification emails.

Screenshot of Guerrilla command-line receiving emails

Built based on the official API documention.

Usage: CLI

Install with Go:

go install github.com/liamg/guerrilla/cmd/guerrilla@latest

No configuration or authentication required, just run:

$ guerrilla

...and start receiving emails!

Usage: Go Module

package main

import (
    "fmt"
    "github.com/liamg/guerrilla/pkg/guerrilla"
)

func main() {
    
    client, _ := guerrilla.Init()
    poller := guerrilla.NewPoller(client)

    for email := range poller.Poll() {
        fmt.Printf("Email received: Subject=%s\nBody=%s\n\n", email.Subject, email.Body)
    }
}