RuleGo RuleGo
🏠Home
  • Quick Start
  • Rule Chain
  • Standard Components
  • Extension Components
  • Custom Components
  • Visualization
  • RuleGo-Server
  • RuleGo-MCP-Server
  • AOP
  • Trigger
  • Advanced Topics
  • Performance
  • Standard Components
  • Extension Components
  • Custom Components
  • Components Marketplace
  • Overview
  • Quick Start
  • Routing
  • DSL
  • API
  • Options
  • Components
🔥Editor (opens new window)
  • RuleGo Editor (opens new window)
  • RuleGo Server (opens new window)
  • Github (opens new window)
  • Gitee (opens new window)
  • Changelog (opens new window)
  • English
  • 简体中文
🏠Home
  • Quick Start
  • Rule Chain
  • Standard Components
  • Extension Components
  • Custom Components
  • Visualization
  • RuleGo-Server
  • RuleGo-MCP-Server
  • AOP
  • Trigger
  • Advanced Topics
  • Performance
  • Standard Components
  • Extension Components
  • Custom Components
  • Components Marketplace
  • Overview
  • Quick Start
  • Routing
  • DSL
  • API
  • Options
  • Components
🔥Editor (opens new window)
  • RuleGo Editor (opens new window)
  • RuleGo Server (opens new window)
  • Github (opens new window)
  • Gitee (opens new window)
  • Changelog (opens new window)
  • English
  • 简体中文

广告采用随机轮播方式显示 ❤️成为赞助商
  • Quick Start

  • Rule Chain

  • Standard Components

    • Standard Components Overview
    • filter

    • action

    • transform

    • external

      • restApiCall
      • mqttClient
      • sendEmail
        • Configuration
          • Email configuration
        • Relation Type
        • Execution result
        • Configuration example
        • Application example
      • dbClient
      • ssh
      • net
    • flow

  • Extension Components

  • Custom Components

  • Components marketplace

  • Visualization

  • AOP

  • Trigger

  • Advanced Topic

  • RuleGo-Server

  • FAQ

  • Endpoint Module

  • Support

目录

sendEmail

sendEmail component: send email.

# Configuration

Field Type Description Default value
smtpHost string Smtp host address None
smtpPort int Smtp port None
username string Username None
password string Authorization code None
enableTls bool Whether to use tls mode false
email Email Email content configuration None

# Email configuration

Field Type Description Default value
from string Sender address None
to string Recipient email, multiple separated by , None
cc string Cc email, multiple separated by , None
bcc string Bcc email, multiple separated by , None
subject string Email subject, can using Component Configuration Variables. None
body string Email template, can using Component Configuration Variables. None

# Relation Type

  • Success: Execution successful, send the message to the Success chain
  • Failure: Execution failed, send the message to the Failure chain

# Execution result

This component will not change the content of msg.Data and msg.Metadata.

# Configuration example

  {
    "id": "s1",
    "type": "sendEmail",
    "name": "Send email",
    "configuration": {
      "smtpHost": "smtp.163.com",
      "smtpPort": 25,
      "username": "xxx@163.com",
      "password": "authorize code",
      "email": {
        "from": "xxx@163.com",
        "to": "xxx@163.com,aaa@hotmail.com",
        "cc": "bbb@hotmail.com",
        "subject": "Test email 3",
        "body": "<b>Test content 3</b>"
      }
    }
  }
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18

# Application example

None

Edit this page on GitHub (opens new window)
Last Updated: 2025/04/02, 01:29:50
mqttClient
dbClient

← mqttClient dbClient→

Theme by Vdoing | Copyright © 2023-2025 RuleGo Team | Apache 2.0 License

  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式