Fiber Boilerplate
  • Introduction
  • Installation
  • Features
  • Project Structure
  • Project Flow
  • Deployment
  • Configuration File
    • Auth
    • Database
    • Log
    • Mail
    • PayPal
    • Profiler
    • Server
    • Session
    • Storage
    • Token
  • Additional Libraries
  • Project Dependencies
Powered by GitBook
On this page

Was this helpful?

  1. Configuration File

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"`
}
PreviousLogNextPayPal

Last updated 4 years ago

Was this helpful?