Documentation ¶
Index ¶
- Variables
- type Message
- func (m *Message) AddAttach(filename string) error
- func (m *Message) AddHtml(html string)
- func (m *Message) AddInline(filename string) error
- func (m *Message) AddRcpt(users []string)
- func (m *Message) AddText(text string)
- func (m *Message) RemoveAttach()
- func (m *Message) RemoveHtml()
- func (m *Message) RemoveInline()
- func (m *Message) RemoveRcpt(user string) string
- func (m *Message) RemoveText()
- func (m *Message) SetAttach(filename string) error
- func (m *Message) SetHtml(html string)
- func (m *Message) SetInline(filename string) error
- func (m *Message) SetRcpt(users []string)
- func (m *Message) SetText(text string)
- type SMTPSender
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ImgSuffix = []string{".bmp", ".jpg", ".jpeg", ".png", ".tiff", ".gif", ".pcx", ".tga", ".exif", ".fpx", ".svg", ".psd", ".cdr", ".pcd", ".dxf", ".ufo", ".eps", ".ai", ".raw", ".wmf"}
)
img suffix
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct {
// contains filtered or unexported fields
}
定义发送的内容
func NewMessage ¶
func (*Message) RemoveRcpt ¶
删除接收者 删除成功返回删除的名称 不存在返回""
Click to show internal directories.
Click to hide internal directories.