Skip to content
This repository has been archived by the owner on Aug 17, 2024. It is now read-only.

Latest commit

 

History

History
56 lines (46 loc) · 778 Bytes

README.md

File metadata and controls

56 lines (46 loc) · 778 Bytes

Bindings

Dapr - Bindings building block


Send Email

await _daprClient.InvokeBindingAsync(
                BindingName,
                Operation,
                body,
                metadata);

SMTP Configurations

apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
  name: sendemail
spec:
  type: bindings.smtp
  version: v1
  metadata:
  - name: host
    value: localhost
  - name: port
    value: 1025
  - name: skipTLSVerify
    value: true

Cron Configuration

apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
  name: scheduled
  namespace: default
spec:
  type: bindings.cron
  version: v1
  metadata:
  - name: schedule
    value: "@every 3s"
  - name: route
    value: /api/Bindings/send-email