hackclub / hackclub/hcb

[Org] Onboarding welcome emails

Open
#9,683 13 comments 0 reactions 1 assignee Claimed by @leowilkin View on GitHub
Dominant language
Ruby
Stars
870
Forks
138
Avg merge
1d 18h
Merged PRs (30d)
205

Description

@leowilkin is working on sending "welcome" emails to users who have just been onboarded. Here's a draft he sent me:

![Image](https://github.com/user-attachments/assets/e46f95d4-4e69-452b-bc49-a08c149b0ab8)

----

@leowilkin, go ahead and create an `Event::OnboardingMailer`. I'll then help with the scheduling of these emails.

You can get Rails to do most of the work for you by running:

```bash
bin/rails g mailer event/onboarding
```

It'll generate these files:
```
create app/mailers/event/onboarding_mailer.rb
invoke erb
create app/views/event/onboarding_mailer
create app/views/layouts/event/mailer.text.erb
create app/views/layouts/event/mailer.html.erb
```
- You can delete app/views/layouts/event/mailer.text.erb
- In app/views/layouts/event/mailer.html.erb, get rid of the HTMl shell and just put in the body of your email. Our [mailer layout](https://github.com/hackclub/bank/tree/97837b74f91e332331c90e7287f04bfaa465ce6b/app/views/layouts/mailer) will handle the HTML shell.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.