Class EmailChannel

All Implemented Interfaces:
Describable<NotificationChannel>

public class EmailChannel extends NotificationChannel
Notify-only email channel. Uses the controller's Mailer SMTP session, so Microsoft 365 / Exchange / Gmail all work when Manage Jenkins → System → E-mail Notification is configured. No Microsoft Graph API.
  • Constructor Details

    • EmailChannel

      @DataBoundConstructor public EmailChannel()
  • Method Details

    • getRecipients

      @CheckForNull public String getRecipients()
    • setRecipients

      @DataBoundSetter public void setRecipients(@CheckForNull String recipients)
    • send

      public void send(@NonNull NotificationEvent event)
      Description copied from class: NotificationChannel
      Deliver event. Implementations log and return on failure; they must not throw.
      Specified by:
      send in class NotificationChannel
      Parameters:
      event - a snapshot with job metadata and an absolute Jenkins URL; never the review file or question context markdown