Skip to content

Commit

Permalink
docs: add mailhog example for email provider
Browse files Browse the repository at this point in the history
  • Loading branch information
Chinoholo0807 committed Jul 13, 2023
1 parent 9f2185f commit a4c81c7
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions docs/provider/email.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,29 @@ authors: [kininaru]
![Email Config](/img/providers/emailconfig.png)

4. Fill customized `Email Title` and `Email Content` and save.

## Example

Here we use MailHog as the SMTP server. [MailHog](https://github.com/mailhog/MailHog) is an email-testing tool with a fake SMTP server underneath.

1. Deploy the MailHog service.

Here the IP address for the MailHog service is `192.168.24.128`, and the SMTP service port is `1025`.

![mailhog config](/img/providers/mailhog_conf.png)

2. Create a Email provider.

Fill the necessary information and save.

![mailhog email provider](/img/providers/mailhog_email_provider_conf.png)

3. Sending Test Email.

First, click on the `Test SMTP Connection` button, if you see `provider: SMTP connected successfully`, it means that your Casdoor service can access the MailHog service.

Second, click on the `Send Testing Email` button, if you see `Email sent successfully`, it means that the test email has been successfully sent from the `From address` to the `Test Email`.

![mailhog send test email](/img/providers/mailhog_send_test_email.png)

![mailhog recv test email](/img/providers/mailhog_recv_test_email.png)
Binary file added static/img/providers/mailhog_conf.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/providers/mailhog_recv_test_email.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added static/img/providers/mailhog_send_test_email.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit a4c81c7

Please sign in to comment.