Documentation ¶
Index ¶
- Constants
- func GetClient(config *oauth2.Config) *http.Client
- func GetTokenFromWeb(config *oauth2.Config) *oauth2.Token
- func ReadMailConfig(scope ...string) (*oauth2.Config, error)
- func SaveToken(path string, token *oauth2.Token)
- func SendEmail(serverAddress, mailAddress, mailKey, to, sub, tmpl string, data interface{}) error
- func TokenFromFile(file string) (*oauth2.Token, error)
- type Attach
- type Mail
- type Service
Constants ¶
View Source
const (
MIME = "MIME-version: 1.0;\nContent-Type: text/html; charset=\"UTF-8\";\n\n"
)
Variables ¶
This section is empty.
Functions ¶
func GetTokenFromWeb ¶
Request a token from the web, then returns the retrieved token.
Types ¶
type Mail ¶
func (*Mail) CheckAllegati ¶
type Service ¶
Client for read and modify mail but not delete
func (*Service) AddDataMails ¶
func (*Service) SendEmailOAUTH2 ¶
func (*Service) SetMailAtRead ¶
func (*Service) UnreadMails ¶
func (s *Service) UnreadMails()
Click to show internal directories.
Click to hide internal directories.