emiliosetiadarma commented on code in PR #6204:
URL: https://github.com/apache/nifi/pull/6204#discussion_r921706355


##########
nifi-nar-bundles/nifi-standard-bundle/nifi-standard-processors/src/test/java/org/apache/nifi/processors/standard/TestPutEmail.java:
##########
@@ -299,4 +299,51 @@ public void testOutgoingMessageWithFlowfileContent() 
throws Exception {
         assertEquals("another...@apache.org", 
message.getRecipients(RecipientType.BCC)[1].toString());
     }
 
+    @Test
+    public void testValidDynamicMailProperties() throws Exception {
+        runner.setProperty(PutEmail.SMTP_HOSTNAME, "smtp-host");
+        runner.setProperty(PutEmail.HEADER_XMAILER, "TestingNiFi");
+        runner.setProperty(PutEmail.FROM, "t...@apache.org,f...@apache.org");
+        runner.setProperty(PutEmail.MESSAGE, "${body}");
+        runner.setProperty(PutEmail.TO, 
"recipi...@apache.org,anot...@apache.org");
+        runner.setProperty(PutEmail.CC, 
"recipien...@apache.org,anothe...@apache.org");
+        runner.setProperty(PutEmail.BCC, 
"recipient...@apache.org,another...@apache.org");
+        runner.setProperty(PutEmail.CONTENT_AS_MESSAGE, "${sendContent}");
+
+        runner.setProperty("mail.smtp.timeout", "sample dynamic mail 
property");
+        runner.setProperty("mail.smtp.writetimeout", "sample dynamic mail 
property");
+        runner.setProperty("mail.smtp.connectiontimeout", "sample dynamic mail 
property");
+        runner.setProperty("mail.smtp.auth.xoauth2.disable", "sample dynamic 
mail property");

Review Comment:
   Will make the changes



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@nifi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to