Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/emersion/go-smtp
/ functions
Functions
251 in github.com/emersion/go-smtp
⨍
Functions
251
◇
Types & classes
43
↓ 1 callers
Method
Noop
Noop sends the NOOP command to the server. It does nothing but check that the connection to the server is okay.
client.go:876
↓ 1 callers
Method
Reset
()
server_test.go:100
↓ 1 callers
Method
Reset
Discard currently processed message.
backend.go:53
↓ 1 callers
Method
Reset
Reset sends the RSET command to the server, aborting the current mail transaction.
client.go:858
↓ 1 callers
Function
SendMail
SendMail connects to the server at addr, switches to TLS, authenticates with the optional SASL client, and then sends an email from address from, to a
client.go:798
↓ 1 callers
Method
Start
()
client_test.go:53
↓ 1 callers
Method
SupportsAuth
SupportsAuth checks whether an authentication mechanism is supported.
client.go:821
↓ 1 callers
Method
Temporary
()
data.go:40
↓ 1 callers
Method
Timeout
()
server_test.go:231
↓ 1 callers
Method
Unwrap
Unwrap returns all per-recipient errors returned by the server.
client.go:685
↓ 1 callers
Method
auth
(mech string)
conn.go:912
↓ 1 callers
Method
authMechanisms
()
conn.go:905
↓ 1 callers
Function
decodeTypedAddress
(val string)
conn.go:573
↓ 1 callers
Function
decodeUTF8AddrXtext
Decodes the utf-8-addr-xtext or the utf-8-addr-unitext form.
conn.go:492
↓ 1 callers
Function
doSendMail
(hostPort string)
client_test.go:758
↓ 1 callers
Function
encodeUTF8AddrUnitext
Encodes raw string to the utf-8-addr-unitext form in RFC 6533.
conn.go:638
↓ 1 callers
Function
encodeUTF8AddrXtext
Encodes raw string to the utf-8-addr-xtext form in RFC 6533.
conn.go:617
↓ 1 callers
Method
greet
()
conn.go:1274
↓ 1 callers
Method
greet
()
client.go:184
↓ 1 callers
Method
handle
Commands are dispatched to the appropriate handler functions.
conn.go:90
↓ 1 callers
Method
handleAuth
(arg string)
conn.go:818
↓ 1 callers
Method
handleBdat
(arg string)
conn.go:993
↓ 1 callers
Method
handleConn
(c *Conn)
server.go:151
↓ 1 callers
Method
handleData
DATA
conn.go:957
↓ 1 callers
Method
handleDataLMTP
()
conn.go:1208
↓ 1 callers
Method
handleGreet
GREET state -> waiting for HELO
conn.go:222
↓ 1 callers
Method
handleMail
READY state -> waiting for MAIL
conn.go:318
↓ 1 callers
Method
handlePanic
(err interface{}, status *statusCollector)
conn.go:1135
↓ 1 callers
Method
handleRcpt
MAIL state -> waiting for RCPTs followed by DATA
conn.go:672
↓ 1 callers
Method
handleStartTLS
()
conn.go:919
↓ 1 callers
Function
newConn
(c net.Conn, s *Server)
conn.go:49
↓ 1 callers
Function
newFailingListener
()
server_test.go:182
↓ 1 callers
Function
parseCmd
(line string)
parse.go:18
↓ 1 callers
Function
parseDeliverByArgument
Parses the BY argument defined in RFC2852 section 4. Returns pointer to options or nil if invalid.
parse.go:81
↓ 1 callers
Function
parseEnhancedCode
(s string)
client.go:899
↓ 1 callers
Function
parseHelloArgument
(arg string)
parse.go:68
↓ 1 callers
Method
parseLocalPart
()
parse.go:206
↓ 1 callers
Function
serverHandleTLS
(c net.Conn, t *testing.T)
client_test.go:722
Method
Auth
Auth is the handler for supported authenticators.
example_server_test.go:33
Method
Auth
(mech string)
server_test.go:84
Method
AuthMechanisms
AuthMechanisms returns a slice of available auth mechanisms; only PLAIN is supported in this example.
example_server_test.go:28
Method
AuthMechanisms
()
server_test.go:77
Method
AuthPlain
(username, password string)
cmd/smtp-debug-server/main.go:26
Method
Close
Close implements io.Closer.
client.go:577
Method
Conn
()
conn.go:200
Method
Data
(r io.Reader)
example_server_test.go:59
Method
Data
(r io.Reader)
cmd/smtp-debug-server/main.go:38
Method
Error
()
server_test.go:229
Function
ExampleDial
()
example_test.go:16
Function
ExampleSendMail
()
example_test.go:71
Function
ExampleSendMail_plainAuth
()
example_test.go:60
Function
ExampleServer
ExampleServer runs an example SMTP server. It can be tested manually with e.g. netcat: > netcat -C localhost 1025 EHLO localhost AUTH PLAIN AHVz
example_server_test.go:90
Method
Hostname
()
conn.go:196
Method
LMTPData
(r io.Reader, collector smtp.StatusCollector)
server_test.go:160
Method
ListenAndServeTLS
ListenAndServeTLS listens on the TCP network address s.Addr and then calls Serve to handle requests on incoming TLS connections. If s.Addr is blank a
server.go:242
Method
LocalAddr
()
client_test.go:66
Method
Logout
()
example_server_test.go:73
Method
Logout
()
server_test.go:104
Method
Logout
()
cmd/smtp-debug-server/main.go:44
Method
Mail
(from string, opts *smtp.MailOptions)
example_server_test.go:43
Method
Mail
(from string, opts *smtp.MailOptions)
server_test.go:108
Method
Mail
(from string, opts *smtp.MailOptions)
cmd/smtp-debug-server/main.go:30
Function
NewClientLMTP
NewClientLMTP returns a new LMTP Client (as defined in RFC 2033) using an existing connection and host as a server name to be used when authenticating
client.go:145
Function
NewClientStartTLS
NewClientStartTLS creates a new Client and performs a STARTTLS command.
client.go:121
Function
NewServer
New creates a new SMTP server.
server.go:94
Method
NewSession
NewSession is called after client greeting (EHLO, HELO).
example_server_test.go:17
Method
NewSession
(_ *smtp.Conn)
server_test.go:56
Method
NewSession
NewSession calls f(c).
backend.go:44
Method
NewSession
(c *smtp.Conn)
cmd/smtp-debug-server/main.go:20
Method
Rcpt
(to string, opts *smtp.RcptOptions)
example_server_test.go:51
Method
Rcpt
(to string, opts *smtp.RcptOptions)
server_test.go:121
Method
Rcpt
(to string, opts *smtp.RcptOptions)
cmd/smtp-debug-server/main.go:34
Method
Read
(b []byte)
lengthlimit_reader.go:21
Method
Read
(b []byte)
data.go:71
Method
Reject
()
conn.go:1269
Method
Reset
()
example_server_test.go:71
Method
Reset
()
cmd/smtp-debug-server/main.go:42
Function
SendMailTLS
SendMailTLS works like SendMail, but with implicit TLS.
client.go:803
Method
SetStatus
(rcptTo string, err error)
conn.go:1193
Method
TLSConnectionState
TLSConnectionState returns the client's TLS connection state. The return values are their zero values if STARTTLS did not succeed.
client.go:338
Method
Temporary
()
server_test.go:232
Function
TestAuthFailed
(t *testing.T)
client_test.go:572
Function
TestBasic
(t *testing.T)
client_test.go:72
Function
TestBasic_SMTPError
(t *testing.T)
client_test.go:170
Function
TestClientAuthTrimSpace
Don't send a trailing space on AUTH command when there's no initial response: https://github.com/golang/go/issues/17794
client_test.go:26
Function
TestClientDELIVERBY
(t *testing.T)
client_test.go:1090
Function
TestClientDSN
(t *testing.T)
client_test.go:1007
Function
TestClientMTPRIORITY
(t *testing.T)
client_test.go:1126
Function
TestClientRRVS
(t *testing.T)
client_test.go:1057
Function
TestClientXtext
(t *testing.T)
client_test.go:959
Function
TestClient_TooLongLine
(t *testing.T)
client_test.go:245
Function
TestHello
(t *testing.T)
client_test.go:406
Function
TestHello_421Response
(t *testing.T)
client_test.go:519
Function
TestLMTP
(t *testing.T)
client_test.go:802
Function
TestLMTPData
(t *testing.T)
client_test.go:878
Function
TestNewClient
(t *testing.T)
client_test.go:326
Function
TestNewClient2
(t *testing.T)
client_test.go:368
Function
TestParser
(t *testing.T)
parse_test.go:7
Function
TestServer
(t *testing.T)
server_test.go:577
Function
TestServer8BITMIME
(t *testing.T)
server_test.go:497
← previous
next →
101–200 of 251, ranked by callers