Skip to content

Conversation

@nshirley
Copy link
Contributor

Because:

  • We've moved email sending and rendering out of auth-server

This Commit:

  • Updates several emails to send using the new fxa-mailer, renderer and sender

Closes: FXA-12883

Checklist

Put an x in the boxes that apply

  • My commit is GPG signed.
  • If applicable, I have modified or added tests which pass locally.
  • I have added necessary documentation (if appropriate).
  • I have verified that my changes render correctly in RTL (if appropriate).

Screenshots (Optional)

Please attach the screenshots of the changes made in case of change in user interface.

Other information (Optional)

Any other information that is important to this pull request.

...FxaMailerFormat.localTime(request),
...FxaMailerFormat.location(request),
...FxaMailerFormat.device(request),
code: 'todo',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't forget to provide these!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are redirect to and service needed?

...FxaMailerFormat.location(request),
...FxaMailerFormat.device(request),
...FxaMailerFormat.sync(false),
code: 'SEC456',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't forget to provide actual code!

...FxaMailerFormat.location(request),
...FxaMailerFormat.device(request),
code: emailCode,
resume,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are redirectTo & service needed? I see they are provided in the original implementation?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very likely! I didn't see them on the underlying type but I'll update that if needed

clientName: 'Firefox',
redirectTo: 'https://example.com',
resume: 'resumeToken',
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is service needed? I see it's provided in the original data.

mockFxaMailer.sendVerifyEmail.callCount,
0,
'mailer.sendVerifyEmail was not called'
'mockFxaMailer.sendVerifyEmail was called'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was not?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call - I was fixing some of them since they weren't right and just mixed this one up

@nshirley nshirley force-pushed the FXA-12883 branch 2 times, most recently from b6e02d5 to 4db63fd Compare January 28, 2026 06:24
Because:
 - We've moved email sending and rendering out of auth-server

This Commit:
 - Updates several emails to send using the new fxa-mailer, renderer and
   sender

Closes: FXA-12883
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants