Skip to content

Latest commit

 

History

History
20 lines (19 loc) · 608 Bytes

readme.md

File metadata and controls

20 lines (19 loc) · 608 Bytes

To install go get github.com/KakashiHatake324/imap-go-prebuilt

Use case - retrieve nike login code (if you don't add catchall it will use receiver details, if you add catchall information, it will use catchall and retrieve for the receiver)

	imapOpts := &imapgoprebuilt.ImapOpts{
		Imap:          imapgoprebuilt.Gmail,
		Site:          imapgoprebuilt.Nike,
		ReceiverEmail: "EMAIL@gmail.com",
		ReceiverPass:  "APP_PASSWORD",
		CatchallEmail: "",
		CatchallPass:  "",
		MaxChecks:     5,
	}
	if code, err := imapOpts.FetchEmail(); err != nil {
		log.Println(err)
	} else {
		log.Println(code)
	}