From ffb207c58591a6453fc1bada5c97844ee6500f49 Mon Sep 17 00:00:00 2001 From: emersion Date: Mon, 18 Mar 2019 22:27:25 +0200 Subject: [PATCH] readme: update example with latest API --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 09cd948..3c4a62b 100755 --- a/README.md +++ b/README.md @@ -68,7 +68,7 @@ import ( type Backend struct{} // Login handles a login command with username and password. -func (bkd *Backend) Login(username, password string) (smtp.User, error) { +func (bkd *Backend) Login(state *smtp.ConnectionState, username, password string) (smtp.User, error) { if username != "username" || password != "password" { return nil, errors.New("Invalid username or password") } @@ -76,7 +76,7 @@ func (bkd *Backend) Login(username, password string) (smtp.User, error) { } // AnonymousLogin requires clients to authenticate using SMTP AUTH before sending emails -func (bkd *Backend) AnonymousLogin() (smtp.User, error) { +func (bkd *Backend) AnonymousLogin(state *smtp.ConnectionState) (smtp.User, error) { return nil, smtp.ErrAuthRequired }