Email Notification Service
The first Notifier is to send emails and the implementation is org.apache.nifi.bootstrap.notification.email.EmailNotificationService
. It has the following properties available:
Property |
Required |
Description |
|
true |
The hostname of the SMTP Server that is used to send Email Notifications |
|
true |
The Port used for SMTP communications |
|
true |
Username for the SMTP account |
|
Password for the SMTP account |
|
|
Flag indicating whether authentication should be used |
|
|
Flag indicating whether TLS should be enabled |
|
|
|
|
|
X-Mailer used in the header of the outgoing email |
|
|
Mime Type used to interpret the contents of the email, such as |
|
|
true |
Specifies the Email address to use as the sender. Otherwise, a "friendly name" can be used as the From address, but the value must be enclosed in double-quotes. |
|
The recipients to include in the To-Line of the email |
|
|
The recipients to include in the CC-Line of the email |
|
|
The recipients to include in the BCC-Line of the email |
In addition to the properties above that are marked as required, at least one of the To
, CC
, or BCC
properties must be set.
A complete example of configuring the Email service would look like the following:
<service>
<id>email-notification</id>
<class>org.apache.nifi.bootstrap.notification.email.EmailNotificationService</class>
<property name="SMTP Hostname">smtp.gmail.com</property>
<property name="SMTP Port">587</property>
<property name="SMTP Username">username@gmail.com</property>
<property name="SMTP Password">super-secret-password</property>
<property name="SMTP TLS">true</property>
<property name="From">"NiFi Service Notifier"</property>
<property name="To">username@gmail.com</property>
</service>