mmisw / mmiorr

Unmaintained old MMI ORR system (v2) -- New development at https://github.com/mmisw/orr
2 stars 1 forks source link

more general email settings #400

Closed carueda closed 8 years ago

carueda commented 8 years ago

Currently (2.6.2), the email settings in {template.}mmiorr.conf only allow to indicate a Google account (username and password).

Task here is to make this more general, also accepting the following parameters:

parameter purpose current hard-coded value
mailer for the X-Mailer message header MMI-ORR
mail.host mail server host smtp.gmail.com
mail.port mail server port 465
mail.prot protocol smtps
carueda commented 8 years ago

Implemented in 2.6.3.

The email section in {template.}mmiorr.conf now captures the following:

email {
  ## account used for sending emails
  account {
    username = "someone@gmail.com"
    password = "thepassword"
  }

  ## email server parameters
  server {
    host = "smtp.gmail.com"
    port = 465
    prot = "smtps"
  }

  ## info used to compose emails (when user resets password; notifications about registrations):
  from    = "MMI-ORR <techlead@marinemetadata.org>"
  replyTo = "techlead@marinemetadata.org"
  mailer  = "MMI-ORR"
}