DEPRECATED - Migrated to https://github.com/mozilla/fxa
Перейти к файлу
Vlad Filippov 0de6c8776d Merge pull request #179 from mozilla/i178 r=rfk
Fixes #178
2016-07-08 11:05:29 -04:00
bin Merge pull request #179 from mozilla/i178 r=rfk 2016-07-08 11:05:29 -04:00
config feat(reminders): add verification reminders 2016-06-08 18:48:50 -04:00
grunttasks feat(build): Add version-tagging grunt tasks 2016-06-22 15:53:10 +10:00
lib Merge pull request #179 from mozilla/i178 r=rfk 2016-07-08 11:05:29 -04:00
partials Updated to style guide blue 2016-06-06 13:27:25 -04:00
scripts chore(eslint): make eslint rules consistent 2016-06-24 11:03:45 -07:00
templates fix(styles): update more blue styled links 2016-06-06 13:56:05 -04:00
test Merge pull request #179 from mozilla/i178 r=rfk 2016-07-08 11:05:29 -04:00
.eslintrc chore(lint): add ESLint to repo 2015-06-18 13:26:49 -07:00
.gitignore fix(script): Cleanup of write-to-disk.js based on @philbooth's feedback. 2016-05-25 10:13:54 +01:00
.travis.yml fix(travis): update Travis to MySql 5.6 2016-05-06 13:32:03 -04:00
AUTHORS feat(build): Add version-tagging grunt tasks 2016-06-22 15:53:10 +10:00
CHANGELOG.md Release v1.64.0 2016-06-27 10:01:33 -04: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 Merge pull request #179 from mozilla/i178 r=rfk 2016-07-08 11:05:29 -04: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(metrics): include type of reminder in the email query 2016-06-21 13:11:39 -04:00
npm-shrinkwrap.json Release v1.64.0 2016-06-27 10:01:33 -04:00
package.json Release v1.64.0 2016-06-27 10:01:33 -04:00
translator.js chore(lint): add ESLint to repo 2015-06-18 13:26:49 -07: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