Skip to content

Commit 1a676e4

Browse files
feat(): introduce Email plugin
1 parent d155c11 commit 1a676e4

File tree

5 files changed

+11
-7
lines changed

5 files changed

+11
-7
lines changed

src/main/java/io/kestra/plugin/email/MailExecution.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
@Schema(
2222
title = "Send an email with the execution information.",
2323
description = "The message will include a link to the execution page in the UI along with the execution ID, namespace, flow name, the start date, duration, and the final status of the execution. If the task failed, then the task that led to the failure is specified.\n\n" +
24-
"Use this notification task only in a flow that has a [Flow trigger](https://kestra.io/docs/administrator-guide/monitoring#alerting), as shown in this example. Don't use this notification task in `errors` tasks. Instead, for `errors` tasks, use the [MailSend](https://kestra.io/plugins/plugin-notifications/tasks/mail/io.kestra.plugin.email.mailsend) task."
24+
"Use this notification task only in a flow that has a [Flow trigger](https://kestra.io/docs/administrator-guide/monitoring#alerting), as shown in this example. Don't use this notification task in `errors` tasks. Instead, for `errors` tasks, use the [MailSend](https://kestra.io/plugins/plugin-email/io.kestra.plugin.email.mailsend) task."
2525
)
2626
@Plugin(
2727
examples = {
@@ -57,7 +57,8 @@
5757
prefix: true
5858
"""
5959
)
60-
}
60+
},
61+
aliases = "io.kestra.plugin.notifications.mail.MailExecution"
6162
)
6263
public class MailExecution extends MailTemplate implements ExecutionInterface {
6364
@Builder.Default

src/main/java/io/kestra/plugin/email/MailReceivedTrigger.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@
6262
ssl: true
6363
"""
6464
)
65-
}
65+
},
66+
aliases = "io.kestra.plugin.notifications.mail.MailReceivedTrigger"
6667
)
6768
public class MailReceivedTrigger extends AbstractMailTrigger
6869
implements PollingTriggerInterface, TriggerOutput<MailService.Output> {

src/main/java/io/kestra/plugin/email/MailSend.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,8 @@
176176
- 192.168.1.100
177177
"""
178178
)
179-
}
179+
},
180+
aliases = "io.kestra.plugin.notifications.mail.MailSend"
180181
)
181182
public class MailSend extends Task implements RunnableTask<VoidOutput> {
182183
/* Server info */

src/main/java/io/kestra/plugin/email/RealTimeTrigger.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@
9090
interval: PT30S
9191
"""
9292
)
93-
}
93+
},
94+
aliases = "io.kestra.plugin.notifications.mail.RealTimeTrigger"
9495
)
9596
public class RealTimeTrigger extends AbstractMailTrigger
9697
implements RealtimeTriggerInterface, TriggerOutput<MailService.EmailData> {

src/main/resources/metadata/index.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
group: io.kestra.plugin.email
2-
name: "mail"
3-
title: "Mail"
2+
name: "email"
3+
title: "Email"
44
description: "Tasks that send email notifications."
55
body: "Configure SMTP server/port, credentials, from/to addresses, subject, and body/attachments to send emails from workflows; supports TLS/SSL settings for secure delivery."
66
videos: []

0 commit comments

Comments
 (0)