Skip to content

Commit

Permalink
docs: 📝 Update email doc
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Jun 12, 2022
1 parent 97980f4 commit 6657a85
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 16 deletions.
19 changes: 4 additions & 15 deletions apps/docs/docs/integrations/email.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,9 @@ If you want to receive an email notification each time a user completes the bot

<img src="/img/integrations/email.png" width="400" alt="Email block example" />

By default the email will be send from notifications@typebot.io. But you can choose to use your own email (SMTP) account, using the "From:" dropdown and filling in your credentials.
By default, the email will be sent from notifications@typebot.io with a default content based on what your new lead has replied. It will look like this:

I've recorded a tutorial on how to connect your Gmail account ([even though this isn't recommended](https://nodemailer.com/usage/using-gmail/)):
<img src="/img/integrations/default-email.png" alt="Email block example" />

<YoutubeEmbed videoId="C_LXt5SbP6w" />

## Body configuration

You can customize the email you want to send:

<img
src="/img/integrations/email-body.png"
width="400"
alt="Email block example"
/>

The email will be sent each time the block is triggered. You can, of course, have multiple Email block in a the same flow.
You can choose to use your own email (SMTP) account, using the "From:" dropdown and filling in your credentials.
You can also customize the email content with your own text/HTML.
3 changes: 2 additions & 1 deletion apps/docs/docs/self-hosting/configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,8 @@ These can also be added to the `viewer` environment
| ---------------------- | --------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| DATABASE_URL | postgresql://postgres:typebot@db:5432/typebot | The database URL |
| ENCRYPTION_SECRET | SgVkYp2s5v8y/B?E(H+MbQeThWmZq4t6 | A 256-bit key used to encrypt sensitive data. It is strongly recommended to [generate](https://www.allkeysgenerator.com/Random/Security-Encryption-Key-Generator.aspx) a new one. |
| NEXT_PUBLIC_VIEWER_URL | http://localhost:3001 | The viewer base URL. Should be the publicly accessible URL (i.e. `https://typebot.io`) |
| NEXTAUTH_URL | http://localhost:3000 | The builder base URL. Should be the publicly accessible URL (i.e. `https://typebot.domain.com`) |
| NEXT_PUBLIC_VIEWER_URL | http://localhost:3001 | The viewer base URL. Should be the publicly accessible URL (i.e. `https://bot.domain.com`) |

<details><summary><h3>Emails (Notifications)</h3></summary>
<p>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

5 comments on commit 6657a85

@vercel
Copy link

@vercel vercel bot commented on 6657a85 Jun 12, 2022

Choose a reason for hiding this comment

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

@vercel
Copy link

@vercel vercel bot commented on 6657a85 Jun 12, 2022

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

builder-v2 – ./apps/builder

app.typebot.io
builder-v2-git-main-typebot-io.vercel.app
builder-v2-typebot-io.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 6657a85 Jun 12, 2022

Choose a reason for hiding this comment

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

@vercel
Copy link

@vercel vercel bot commented on 6657a85 Jun 12, 2022

Choose a reason for hiding this comment

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

@vercel
Copy link

@vercel vercel bot commented on 6657a85 Jun 12, 2022

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

docs – ./apps/docs

docs.typebot.io
docs-typebot-io.vercel.app
docs-git-main-typebot-io.vercel.app

Please sign in to comment.