[⚠️ DEPRECATED ⚠️] Helper server for fxa-auth-server to send email. Use fxa-auth-server directly
fxa
Перейти к файлу
John Morrison 70771640f3 Release v1.72.1 2016-11-13 14:36:15 -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(config): disable polling if pollTime === 0 (#236) 2016-11-13 14:35:35 -08:00
partials feat(mailer): Remove the `Alternatively` link from all emails. 2016-10-18 16:04:01 +01:00
scripts Merge pull request #198 from mozilla/issue-196-signin-authorization 2016-10-12 11:11:36 +01:00
templates feat(mailer): Remove the `Alternatively` link from all emails. 2016-10-18 16:04:01 +01:00
test feat(mailer): Remove the `Alternatively` link from all emails. 2016-10-18 16:04:01 +01: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 feat(build): Add version-tagging grunt tasks 2016-06-22 15:53:10 +10:00
CHANGELOG.md Release v1.72.1 2016-11-13 14:36:15 -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(docs): fix prerequisites for node 2015-11-13 18:17:38 -05:00
config.js fix(config): disable polling if pollTime === 0 (#236) 2016-11-13 14:35:35 -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 feat(mailer): Remove the `Alternatively` link from all emails. 2016-10-18 16:04:01 +01:00
npm-shrinkwrap.json Release v1.72.1 2016-11-13 14:36:15 -08:00
package.json Release v1.72.1 2016-11-13 14:36:15 -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

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 0.10.x
  • npm
  • 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