跳到主内容

MailHog email

MailHog is a test SMTP server that captures outgoing mail. Use your MailHog host and port (e.g. 192.168.24.128:1025).

1. Run MailHog

Start the MailHog service so the SMTP server is reachable from Casdoor (e.g. 192.168.24.128, port 1025).

MailHog配置

2. Create the email provider in Casdoor

ProvidersAdd. Set Category to Email and the type to the appropriate SMTP option. Set Host and Port to your MailHog address. No auth by default. Save.

MailHog电子邮件提供商

3. Test

Use Test SMTP Connection; you should see “SMTP connected successfully”. Use Send Testing Email; you should see “Email sent successfully” and the message in MailHog’s UI.

使用MailHog发送测试电子邮件

使用MailHog接收测试电子邮件