Add SMTP configuration

O01eg
Apr 13, 2022, 5:58 AM
Z3SYSC25TVJBLI4JBYM3OCBK7DYCC2BKPAYW6OVTN2ILFQ4ANUMQC

Dependencies

  • [2] CMA5SKJ3 Copy turns Atom generator
  • [*] 4MZ4VIR7 Initial commit
  • [*] WVHXYKCV Add postgresql pools
  • [*] BCXEUKX6 Add config, static files and web server
  • [*] 7R6HAATP Optional publish static files if use reverse-proxy

Change contents

  • edit in src/main.rs at line 50
    [5.912]
    [5.912]
    ..
  • edit in src/config.rs at line 1
    [6.1410]
    [6.1411]
    use std::fmt;
  • edit in src/config.rs at line 7
    [6.1496]
    [6.1496]
    #[derive(Deserialize)]
    pub struct MailConfig {
    pub server: String,
    pub login: String,
    pub password: String,
    pub from: String,
    }
    impl fmt::Debug for MailConfig {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
    f.debug_struct("MailConfig")
    .field("server", &self.server)
    .field("login", &self.login)
    .field("from", &self.from)
    .finish()
    }
    }
  • edit in src/config.rs at line 35
    [2.4022]
    [7.731]
    pub mail: MailConfig,