MCPcopy Index your code

hub / github.com/go-gomail/gomail / functions

Functions148 in github.com/go-gomail/gomail

↓ 42 callersMethodSetHeader
SetHeader sets a value to the given header field.
message.go:100
↓ 21 callersMethodSetBody
SetBody sets the body of the message.
message.go:181
↓ 16 callersFunctionNewMessage
NewMessage creates a new message. It uses UTF-8 and quoted-printable encoding by default.
message.go:32
↓ 15 callersFunctiontestMessage
(t *testing.T, m *Message, bCount int, want *message)
message_test.go:480
↓ 12 callersMethodAttach
Attach attaches the files to the email.
message.go:295
↓ 12 callersFunctionmockCopyFile
(name string)
message_test.go:592
↓ 10 callersMethodClose
()
smtp.go:174
↓ 10 callersMethoddo
(cmd string)
smtp_test.go:163
↓ 9 callersMethodwriteString
(s string)
writeto.go:152
↓ 8 callersFunctiontestPlainAuth
(t *testing.T, test *plainAuthTest)
auth_test.go:109
↓ 7 callersMethodSetAddressHeader
SetAddressHeader sets an address to the given header field.
message.go:123
↓ 7 callersMethodSetHeaders
SetHeaders sets the message headers.
message.go:116
↓ 5 callersMethodEmbed
Embed embeds the images to the email.
message.go:300
↓ 5 callersMethodFormatAddress
FormatAddress formats an address and a name as a valid RFC 5322 address.
message.go:128
↓ 5 callersFunctiontestSendMail
(t *testing.T, d *Dialer, want []string)
smtp_test.go:194
↓ 4 callersMethodAddAlternative
AddAlternative adds an alternative part to the message. It is commonly used to send HTML emails that default to the plain text version for backward c
message.go:199
↓ 4 callersMethodDial
Dial dials and authenticates to an SMTP server. The returned SendCloser should be closed when done using it.
smtp.go:49
↓ 4 callersMethodFormatDate
FormatDate formats a date as a valid RFC 5322 date.
message.go:171
↓ 4 callersFunctionNewPlainDialer
NewPlainDialer returns a Dialer. The given parameters are used to connect to the SMTP server via a PLAIN authentication mechanism. It fallbacks to th
smtp.go:34
↓ 4 callersMethodReset
Reset resets the message so it can be reused. The message keeps its previous settings so it is in the same state that after a call to NewMessage.
message.go:52
↓ 4 callersFunctionSend
Send sends emails using the given Sender.
send.go:36
↓ 4 callersMethodSend
(from string, to []string, msg io.WriterTo)
send.go:14
↓ 4 callersMethodWriteTo
WriteTo implements io.WriterTo. It dumps the whole message into w.
writeto.go:14
↓ 4 callersMethodsetHeader
(field, value string)
message.go:235
↓ 3 callersMethodDialAndSend
DialAndSend opens a connection to the SMTP server, sends the given emails and closes the connection.
smtp.go:113
↓ 3 callersFunctionSetEncoding
SetEncoding is a message setting to set the encoding of the email.
message.go:79
↓ 3 callersMethodWrite
(p []byte)
writeto.go:141
↓ 3 callersMethodWrite
(p []byte)
smtp_test.go:180
↓ 3 callersFunctionaddr
(host string, port int)
smtp.go:107
↓ 3 callersMethodcloseMultipart
()
writeto.go:100
↓ 3 callersFunctioncompareBodies
(t *testing.T, got, want string)
message_test.go:529
↓ 3 callersMethodgetPartHeader
(contentType string)
message.go:222
↓ 3 callersMethodopenMultipart
(mimeType string)
writeto.go:80
↓ 3 callersMethodwriteHeader
(k string, v ...string)
writeto.go:170
↓ 3 callersMethodwriteHeaders
(h map[string][]string)
writeto.go:177
↓ 2 callersMethodAddAlternativeWriter
AddAlternativeWriter adds an alternative part to the message. It can be useful with the text/template or html/template packages.
message.go:213
↓ 2 callersMethodExtension
(string)
smtp.go:167
↓ 2 callersFunctionSetCharset
SetCharset is a message setting to set the charset of the email.
message.go:72
↓ 2 callersMethodSetDateHeader
SetDateHeader sets a date to the given header field.
message.go:166
↓ 2 callersMethodaddFiles
(files []*file, isAttachment bool)
writeto.go:107
↓ 2 callersMethodappendFile
(list []*file, name string, settings []FileSetting)
message.go:266
↓ 2 callersFunctionassertAddr
(t *testing.T, got, want string)
smtp_test.go:238
↓ 2 callersFunctionassertConfig
(t *testing.T, got, want *tls.Config)
smtp_test.go:244
↓ 2 callersMethodcreatePart
(h map[string][]string)
writeto.go:96
↓ 2 callersMethodencodeString
(value string)
message.go:111
↓ 2 callersFunctiongetTestMessage
()
send_test.go:53
↓ 2 callersMethodhasAlternativePart
()
writeto.go:67
↓ 2 callersMethodhasMixedPart
()
writeto.go:59
↓ 2 callersMethodhasRelatedPart
()
writeto.go:63
↓ 2 callersFunctionmissingLine
(t *testing.T, line, got, want string)
message_test.go:573
↓ 2 callersFunctionparseAddress
(field string)
send.go:110
↓ 2 callersMethodtlsConfig
()
smtp.go:99
↓ 2 callersMethodwriteBody
(f func(io.Writer) error, enc Encoding)
writeto.go:189
↓ 1 callersMethodAuth
(smtp.Auth)
smtp.go:169
↓ 1 callersMethodClose
()
send.go:20
↓ 1 callersMethodData
()
smtp.go:172
↓ 1 callersMethodMail
(string)
smtp.go:170
↓ 1 callersMethodNext
(fromServer []byte, more bool)
auth.go:47
↓ 1 callersMethodQuit
()
smtp.go:173
↓ 1 callersMethodRcpt
(string)
smtp.go:171
↓ 1 callersFunctionSetCopyFunc
SetCopyFunc is a file setting to replace the function that runs when the message is sent. It should copy the content of the file to the io.Writer. Th
message.go:260
↓ 1 callersFunctionSetHeader
SetHeader is a file setting to set the MIME header of the message part that contains the file content. Mandatory headers are automatically added if t
message.go:247
↓ 1 callersMethodStart
(server *smtp.ServerInfo)
auth.go:20
↓ 1 callersMethodStartTLS
(*tls.Config)
smtp.go:168
↓ 1 callersFunctionaddAddress
(list []string, addr string)
send.go:100
↓ 1 callersMethodapplySettings
(settings []MessageSetting)
message.go:61
↓ 1 callersFunctionassertAuth
(t *testing.T, got, want smtp.Auth)
smtp_test.go:232
↓ 1 callersMethoddial
()
smtp.go:67
↓ 1 callersMethodencodeHeader
(values []string)
message.go:105
↓ 1 callersFunctiongetBoundaries
(t *testing.T, count int, m string)
message_test.go:577
↓ 1 callersMethodgetFrom
()
send.go:64
↓ 1 callersMethodgetRecipients
()
send.go:76
↓ 1 callersFunctionhasSpecials
(text string)
message.go:154
↓ 1 callersFunctionmockCopyFileWithHeader
(m *Message, name string, h map[string][]string)
message_test.go:599
↓ 1 callersFunctionnewBase64LineWriter
(w io.Writer)
writeto.go:221
↓ 1 callersFunctionsend
(s Sender, m *Message)
send.go:46
↓ 1 callersMethodsslDial
()
smtp.go:90
↓ 1 callersMethodstarttlsDial
()
smtp.go:74
↓ 1 callersFunctionstubSend
(t *testing.T, wantFrom string, wantTo []string, wantBody string)
send_test.go:62
↓ 1 callersFunctionstubSendMail
(t *testing.T, bCount int, want *message)
message_test.go:487
↓ 1 callersMethodwriteMessage
(m *Message)
writeto.go:20
↓ 1 callersMethodwriteStrings
(a []string, sep string)
writeto.go:157
MethodAuth
(a smtp.Auth)
smtp_test.go:132
FunctionBenchmarkFull
(b *testing.B)
message_test.go:604
MethodClose
()
smtp.go:151
MethodClose
()
send_test.go:36
MethodClose
()
smtp_test.go:158
MethodClose
()
smtp_test.go:188
MethodData
()
smtp_test.go:148
FunctionExample
()
example_test.go:13
FunctionExampleMessage_AddAlternative
()
example_test.go:154
FunctionExampleMessage_AddAlternativeWriter
()
example_test.go:159
FunctionExampleMessage_Attach
()
example_test.go:166
FunctionExampleMessage_Embed
()
example_test.go:170
FunctionExampleMessage_FormatAddress
()
example_test.go:175
FunctionExampleMessage_FormatDate
()
example_test.go:179
FunctionExampleMessage_SetAddressHeader
()
example_test.go:185
FunctionExampleMessage_SetBody
()
example_test.go:189
FunctionExampleMessage_SetDateHeader
()
example_test.go:193
FunctionExampleMessage_SetHeader
()
example_test.go:197
next →1–100 of 148, ranked by callers