25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# File 'lib/generators/cloudflare_email_service/install_generator.rb', line 25
def print_next_steps
say "\ncloudflare-email_service installed.\n", :green
say <<~STEPS
Next steps:
1. Point ActionMailer at Cloudflare (e.g. config/environments/production.rb):
config.action_mailer.delivery_method = :cloudflare
2. Set credentials — in the initializer just created, or via the
environment: CLOUDFLARE_ACCOUNT_ID (REST only) and CLOUDFLARE_API_TOKEN.
3. Inbound mail (Action Mailbox), optional — in the initializer,
uncomment `ingress_secret` and the `to_prepare` require, then set:
config.action_mailbox.ingress = :cloudflare
and deploy the bundled Worker (find it at
`Cloudflare::EmailService.worker_template_path`), setting its
CLOUDFLARE_EMAIL_INGRESS_URL and CLOUDFLARE_EMAIL_INGRESS_SECRET vars.
STEPS
end
|