Send
Send
yaml
type: "io.kestra.plugin.microsoft365.outlook.Send"Examples
yaml
id: send_outlook_email
namespace: company.team
tasks:
- id: send_email
type: io.kestra.plugin.microsoft365.outlook.Send
tenantId: "{{ secret('AZURE_TENANT_ID') }}"
clientId: "{{ secret('AZURE_CLIENT_ID') }}"
clientSecret: "{{ secret('AZURE_CLIENT_SECRET') }}"
from: "sender@example.com"
to:
- "recipient@example.com"
subject: "Hello from Kestra"
body: "<h1>Hello!</h1><p>This email was sent from a Kestra workflow.</p>"
bodyType: "Html"
yaml
id: send_detailed_email
namespace: company.team
tasks:
- id: send_email
type: io.kestra.plugin.microsoft365.outlook.Send
tenantId: "{{ secret('AZURE_TENANT_ID') }}"
clientId: "{{ secret('AZURE_CLIENT_ID') }}"
clientSecret: "{{ secret('AZURE_CLIENT_SECRET') }}"
from: "sender@example.com"
to:
- "primary@example.com"
cc:
- "cc1@example.com"
- "cc2@example.com"
bcc:
- "bcc@example.com"
subject: "Important Notification"
body: "This is a plain text email sent from Kestra workflow."
bodyType: "Text"
Properties
body *Requiredstring
clientId *Requiredstring
clientSecret *Requiredstring
from *Requiredstring
subject *Requiredstring
tenantId *Requiredstring
to *Requiredarray
SubTypestring
bcc array
SubTypestring
bodyType string
cc array
SubTypestring
scopes string
Default
https://graph.microsoft.com/.defaultuserPrincipalName string
Outputs
bccCount integer
Default
0bodyType string
ccCount integer
Default
0subject string
toCount integer
Default
0