Desky.UiPath.Mail.SendGridEmail
1.0.6
dotnet add package Desky.UiPath.Mail.SendGridEmail --version 1.0.6
NuGet\Install-Package Desky.UiPath.Mail.SendGridEmail -Version 1.0.6
<PackageReference Include="Desky.UiPath.Mail.SendGridEmail" Version="1.0.6" />
paket add Desky.UiPath.Mail.SendGridEmail --version 1.0.6
#r "nuget: Desky.UiPath.Mail.SendGridEmail, 1.0.6"
// Install Desky.UiPath.Mail.SendGridEmail as a Cake Addin #addin nuget:?package=Desky.UiPath.Mail.SendGridEmail&version=1.0.6 // Install Desky.UiPath.Mail.SendGridEmail as a Cake Tool #tool nuget:?package=Desky.UiPath.Mail.SendGridEmail&version=1.0.6
Desky SendGrid Email UiPath Library
Overview
Desky SendGrid Email is a custom UiPath activity that enables sending emails using the SendGrid API. This activity allows developers to automate the process of sending emails by configuring key details such as the sender, recipients, subject, and body, while optionally including attachments and setting whether the content should be in HTML format.
Features
- Send emails via the SendGrid API.
- Use either a secure API key (
SecureString
) or a plain API key. - Send emails to multiple recipients (To, CC).
- Include email subject, body, and attachments.
- Send emails in plain text or HTML format.
- Receive a response indicating the status of the email operation.
Properties
Inputs:
ApiKeySecure (SecureString)
- The SendGrid API key in a secure format.
ApiKey (string)
- The SendGrid API key in plain text.
SenderEmail (string, Required)
- The email address of the sender.
SenderName (string, Required)
- The name of the sender.
MailRecipientsTo (string, Required)
- Comma-separated email addresses for the recipients.
MailRecipientsCc (string)
- Comma-separated email addresses for CC (carbon copy) recipients.
MailSubject (string, Required)
- The subject of the email.
MailBody (string, Required)
- The body of the email.
IsHtml (bool)
- Indicates if the email body is in HTML format.
MailFileAttachments (string[])
- Array of file paths to include as attachments (optional).
Outputs:
- ActionResponse (string)
- The response message after the email is sent.
Usage
Add the activity to your workflow:
Drag and drop the SendGridEmail activity into your UiPath workflow.Configure the inputs:
Set up the required properties such as the API key (eitherApiKeySecure
orApiKey
), sender information, recipient list, subject, and body.Handle response:
The outputActionResponse
will provide a message indicating whether the email was sent successfully or if there were any errors.
Example Workflow
To send an email:
- Configure your API key securely by using
ApiKeySecure
or use the plainApiKey
property. - Specify the sender’s email and name.
- Add the recipients’ email addresses in
MailRecipientsTo
. - Optionally, specify CC recipients in
MailRecipientsCc
. - Provide the subject in
MailSubject
and the body inMailBody
. - If required, set
IsHtml
toTrue
to format the email body as HTML. - Optionally, add file paths to
MailFileAttachments
for attachments. - Use
ActionResponse
to capture the response message.
Exception Handling
If the API key is missing or email sending fails, the activity will throw an exception, and the error message will be provided in the response.
Dependencies
This activity depends on SendGrid’s API for sending emails. You will need a valid API key from SendGrid to use this library.
License
Support
For any issues or feature requests, please reach out to the project maintainer at masteroflogic.mol@gmail.com.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0-windows7.0 is compatible. net7.0-windows was computed. net8.0-windows was computed. |
-
.NETFramework 4.6.1
- No dependencies.
-
net6.0-windows7.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.6 | 105 | 10/3/2024 |
Features:
supports API keys as SecureString and regular strings, multiple recipients, CC, attachments, and HTML or plain text emails. Ideal for automating email notifications and transactional messages with built-in error handling.