[⚠️ DEPRECATED ⚠️] Helper server for fxa-auth-server to send email. Use fxa-auth-server directly
fxa
Перейти к файлу
Sean McArthur 9bd342f5fc Release v1.80.0 2017-02-07 14:48:47 -08:00
bin changes to make this ready for production (#206) r=vladikoff 2016-09-07 15:16:18 -04:00
config fix(mailer): Slow down the verification reminder emails in dev. (#181) 2016-07-14 18:12:15 -04:00
grunttasks feat(build): Add version-tagging grunt tasks 2016-06-22 15:53:10 +10:00
lib fix(dependencies): update bluebird, nodemailer, convict, moment-timezone (#251) r=vladikoff 2017-02-01 12:42:04 -08:00
partials refactor(templates): Update to correct font-size and line height (#249) r=vladikoff,ryanfeeley 2017-01-20 11:04:34 -05:00
scripts fix(templates): remove suspicious_location template 2017-01-03 14:14:16 -05:00
templates refactor(templates): Update to correct font-size and line height (#249) r=vladikoff,ryanfeeley 2017-01-20 11:04:34 -05:00
test feat(mailer): set up "SES Event Publishing" metrics 2017-01-11 20:43:03 -08:00
.eslintrc chore(lint): add ESLint to repo 2015-06-18 13:26:49 -07:00
.gitignore feat(geo): add state info into emails (#215) r=vbudhram 2016-09-30 10:36:03 -04:00
.travis.yml fix(travis): test on node 4 and 6; always CXX=g++-4.8 2016-10-06 20:10:13 -07:00
AUTHORS chore(docs): update AUTHORS file (#252) 2017-01-27 10:02:25 -05:00
CHANGELOG.md Release v1.80.0 2017-02-07 14:48:47 -08:00
Gruntfile.js feat(build): Add version-tagging grunt tasks 2016-06-22 15:53:10 +10:00
LICENSE Add the full text of the MPL 2.0 2014-09-23 03:37:21 +12:00
README.md fix(l10n): update l10n SHA handling (#238) r=jrgm 2016-12-13 12:20:38 -05:00
config.js feat(mailer): set up "SES Event Publishing" metrics 2017-01-11 20:43:03 -08:00
index.js feat(mailer): Add new security templates 2016-04-11 10:42:22 +01:00
legacy_log.js feat(log): switch to mozlog 2016-01-19 14:42:53 -05:00
log.js feat(log): switch to mozlog 2016-01-19 14:42:53 -05:00
mailer.js fix(dependencies): update bluebird, nodemailer, convict, moment-timezone (#251) r=vladikoff 2017-02-01 12:42:04 -08:00
npm-shrinkwrap.json Release v1.80.0 2017-02-07 14:48:47 -08:00
package.json Release v1.80.0 2017-02-07 14:48:47 -08:00
translator.js fix(l10n): adjust default language (#200) r=vbudhram 2016-08-15 14:14:49 -04:00

README.md

Firefox Accounts Mailer

Build Status Coverage Status

Library to send out verification emails in the fxa-auth-server which renders emails from a template (and handles localization).

The emails are written to postfix which tends sends them off to SES.

The auth-mailer also includes a restify API to send emails, but the auth server is using it as a library at the moment.

Prerequisites

  • node 4
  • npm 2
  • postfix

Changing Templates

If you are changing or adding templates then you need to update .html and .txt templates. Use the /partials directory to make changes to the HTML templates, then run grunt templates to regenerate the template. This saves the HTML template into /templates. Then make changes to the .txt template in the /templates directory.

L10N

After updating a string in one of the templates in ./templates you'll need to extract the strings using this script:

extract_strings.sh [--mailer-repo ./fxa-auth-mailer] [--content-repo ./fxa-content-server] [--l10n-repo ./fxa-content-server-l10n] train_number

Production

Use the FXA_L10N_SHA to pin L10N files to certain SHA. If not set then the master SHA will be used.