Skip to content
uchicom edited this page Dec 8, 2025 · 3 revisions

Welcome to the smtp wiki!

Webhook通知機能の設定方法

  1. ユーザディレクトリに.webhook.ymlファイルを配置する
  2. .webhook.ymlに以下の設定を記載する
send: # webhook送信設定
  method: post
  url: https://dokosoko/test/api/webhook/mail
  header:
    Content-Type: application/json
    Webhook-Token: smtp_webhook_0123456789
  template: "{title:\"${subject}\", content:\"${content:1}\"}"
detection: # 受信メール検知条件設定
  - subject: and 条件
    content:
    from: dokosoko@test
    to: to@test
  - subject: hoge # multipart条件
    multipart:
      ContentType: "text/html; charset=UTF-8"
  1. 起動時の引数にwebhookを追加して起動する

Clone this wiki locally