Mail

type Mail struct {
   *mail.SMTPServer
   *mail.SMTPClient
   Host        string `mapstructure:"MAIL_HOST" yaml:"host" env:"MAIL_HOST" env-default:"smtp.mailtrap.io"`
   Username    string `mapstructure:"MAIL_USERNAME" yaml:"username" env:"MAIL_USERNAME" env-default:"sfdsf"`
   Password    string `mapstructure:"MAIL_PASSWORD" yaml:"password" env:"MAIL_PASSWORD" env-default:"sdfdsf"`
   Encryption  string `mapstructure:"MAIL_ENCRYPTION" yaml:"encryption" env:"MAIL_ENCRYPTION" env-default:"tls"`
   FromAddress string `mapstructure:"MAIL_FROM_ADDRESS" yaml:"from_address" env:"MAIL_FROM_ADDRESS" env-default:"itsursujit@gmail.com"`
   FromName    string `mapstructure:"MAIL_FROM_NAME" yaml:"from_name" env:"MAIL_FROM_NAME" env-default:"Boilerblate"`
   View        *ViewConfig
   Port        int `mapstructure:"MAIL_PORT" yaml:"port" env:"MAIL_PORT" env-default:"2525"`
}

Last updated