Vue d’ensemble
Section intitulée « Vue d’ensemble »Le fournisseur de messagerie Email permet à votre travailleur numérique de communiquer par e-mail. La configuration de démonstration actuelle utilise des identifiants Microsoft Graph pour le courrier sortant, tandis que le courrier entrant est normalement traité par un fournisseur d’événements ou un webhook de fournisseur e-mail. Il prend en charge :
- L’envoi d’e-mails
- La réception d’e-mails (via webhooks)
- Le formatage HTML
- Les pièces jointes
messaging-email est un fournisseur SMTP sortant. Il ne sonde pas les boîtes IMAP ou POP3. Les e-mails entrants sont normalement traités par un fournisseur d’événements ou un webhook fournisseur, comme SendGrid Inbound Parse, Mailgun Routes, AWS SES ou les subscriptions Microsoft Graph lorsque le pack installé les prend en charge.
Configuration
Section intitulée « Configuration »-
Configurer les paramètres e-mail
answers.json {"messaging-email": {"enabled": true,"from_address": "support@example.com","graph_tenant_id": "your-tenant-id","ms_graph_client_id": "your-client-id","ms_graph_client_secret": "your-client-secret","ms_graph_refresh_token": "your-refresh-token"}} -
Configure Inbound (Optional)
For receiving emails, set up an event source or webhook with your email provider:
- SendGrid Inbound Parse
- Mailgun Routes
- AWS SES
-
Run Setup
Fenêtre de terminal gtc setup --answers answers.json ./my-bundle
Configuration Options
Section intitulée « Configuration Options »| Option | Required | Description |
|---|---|---|
enabled | Yes | Enable/disable provider |
from_address | Yes | Default from address |
graph_tenant_id | For Microsoft Graph | Microsoft tenant ID |
ms_graph_client_id | For Microsoft Graph | Microsoft Graph app/client ID |
ms_graph_client_secret | For Microsoft Graph | Microsoft Graph client secret |
ms_graph_refresh_token | For Microsoft Graph | Refresh token used by the pack |
Features
Section intitulée « Features »Send Plain Text
Section intitulée « Send Plain Text »- id: send_email type: reply config: to: "{{user_email}}" subject: "Your Support Request" message: "Thank you for contacting us. We'll get back to you shortly."Send HTML
Section intitulée « Send HTML »- id: send_html_email type: reply config: to: "{{user_email}}" subject: "Welcome!" html: | <html> <body> <h1>Welcome to Our Service!</h1> <p>Thank you for signing up.</p> <a href="https://example.com/start">Get Started</a> </body> </html>With Attachments
Section intitulée « With Attachments »- id: send_with_attachment type: reply config: to: "{{user_email}}" subject: "Your Report" message: "Please find your report attached." attachments: - url: "https://example.com/report.pdf" filename: "report.pdf"CC and BCC
Section intitulée « CC and BCC »- id: send_copy type: reply config: to: "{{user_email}}" cc: "manager@example.com" bcc: "archive@example.com" subject: "Support Update" message: "Your ticket has been resolved."Handling Inbound Email
Section intitulée « Handling Inbound Email »name: handle_emailversion: "1.0"
nodes: - id: process type: reply config: to: "{{from_address}}" subject: "Re: {{subject}}" message: "Thank you for your email. We've received your message."
triggers: - type: email target: process