You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@seatunnel.apache.org by GitBox <gi...@apache.org> on 2022/07/30 08:39:36 UTC

[GitHub] [incubator-seatunnel] 2013650523 opened a new pull request, #2304: [Connector-V2] Add Email sink connector

2013650523 opened a new pull request, #2304:
URL: https://github.com/apache/incubator-seatunnel/pull/2304

   <!--
   
   Thank you for contributing to SeaTunnel! Please make sure that your code changes
   are covered with tests. And in case of new features or big changes
   remember to adjust the documentation.
   
   Feel free to ping committers for the review!
   
   ## Contribution Checklist
   
     - Make sure that the pull request corresponds to a [GITHUB issue](https://github.com/apache/incubator-seatunnel/issues).
   
     - Name the pull request in the form "[Feature] [component] Title of the pull request", where *Feature* can be replaced by `Hotfix`, `Bug`, etc.
   
     - Minor fixes should be named following this pattern: `[hotfix] [docs] Fix typo in README.md doc`.
   
   -->
   
   ## Purpose of this pull request
   
   <!-- Describe the purpose of this pull request. For example: This pull request adds checkstyle plugin.-->
   
   ## Check list
   
   * [ ] Code changed are covered with tests, or it does not need tests for reason:
   * [ ] If any new Jar binary package adding in your PR, please add License Notice according
     [New License Guide](https://github.com/apache/incubator-seatunnel/blob/dev/docs/en/contribution/new-license.md)
   * [ ] If necessary, please update the documentation to describe the new feature. https://github.com/apache/incubator-seatunnel/tree/dev/docs
   


-- 
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: commits-unsubscribe@seatunnel.apache.org

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


[GitHub] [incubator-seatunnel] CalvinKirs commented on a diff in pull request #2304: [Connector-V2] Add Email sink connector

Posted by GitBox <gi...@apache.org>.
CalvinKirs commented on code in PR #2304:
URL: https://github.com/apache/incubator-seatunnel/pull/2304#discussion_r934118691


##########
seatunnel-connectors-v2/connector-email/src/main/java/org/apache/seatunnel/connectors/seatunnel/email/sink/EmailSinkWriter.java:
##########
@@ -0,0 +1,158 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.seatunnel.connectors.seatunnel.email.sink;
+
+import org.apache.seatunnel.api.table.type.SeaTunnelRow;
+import org.apache.seatunnel.api.table.type.SeaTunnelRowType;
+import org.apache.seatunnel.connectors.seatunnel.common.sink.AbstractSinkWriter;
+import org.apache.seatunnel.connectors.seatunnel.email.config.EmailSinkConfig;
+
+import org.apache.seatunnel.shade.com.typesafe.config.Config;
+
+import com.sun.mail.util.MailSSLSocketFactory;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import javax.activation.DataHandler;
+import javax.activation.DataSource;
+import javax.activation.FileDataSource;
+import javax.mail.Authenticator;
+import javax.mail.BodyPart;
+import javax.mail.Message;
+import javax.mail.Multipart;
+import javax.mail.PasswordAuthentication;
+import javax.mail.Session;
+import javax.mail.Transport;
+import javax.mail.internet.InternetAddress;
+import javax.mail.internet.MimeBodyPart;
+import javax.mail.internet.MimeMessage;
+import javax.mail.internet.MimeMultipart;
+
+import java.io.File;
+import java.io.FileWriter;
+import java.io.IOException;
+import java.util.Properties;
+
+public class EmailSinkWriter extends AbstractSinkWriter<SeaTunnelRow, Void> {
+
+    private static final Logger LOGGER = LoggerFactory.getLogger(EmailSinkWriter.class);
+
+    private final SeaTunnelRowType seaTunnelRowType;
+    private EmailSinkConfig config;
+    private StringBuffer stringBuffer;
+
+    public EmailSinkWriter(SeaTunnelRowType seaTunnelRowType, Config pluginConfig) {
+        this.seaTunnelRowType = seaTunnelRowType;
+        this.config = new EmailSinkConfig(pluginConfig);
+        this.stringBuffer = new StringBuffer();
+    }
+
+    @Override
+    public void write(SeaTunnelRow element) {
+        Object[] fields = element.getFields();
+
+        for (Object field : fields) {
+            stringBuffer.append(field.toString() + ",");
+        }
+        stringBuffer.deleteCharAt(fields.length - 1);

Review Comment:
   just as a suggestion. (You can improve it in the next PR, we need to consider the format of various formats, for email)



-- 
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: commits-unsubscribe@seatunnel.apache.org

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


[GitHub] [incubator-seatunnel] CalvinKirs commented on pull request #2304: [Connector-V2] Add Email sink connector

Posted by GitBox <gi...@apache.org>.
CalvinKirs commented on PR #2304:
URL: https://github.com/apache/incubator-seatunnel/pull/2304#issuecomment-1202304178

   Hi, please update the documentation to describe the new feature. https://github.com/apache/incubator-seatunnel/tree/dev/docs


-- 
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: commits-unsubscribe@seatunnel.apache.org

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


[GitHub] [incubator-seatunnel] CalvinKirs commented on a diff in pull request #2304: [Connector-V2] Add Email sink connector

Posted by GitBox <gi...@apache.org>.
CalvinKirs commented on code in PR #2304:
URL: https://github.com/apache/incubator-seatunnel/pull/2304#discussion_r934117905


##########
seatunnel-connectors-v2/connector-email/src/main/java/org/apache/seatunnel/connectors/seatunnel/email/sink/EmailSinkWriter.java:
##########
@@ -0,0 +1,158 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.seatunnel.connectors.seatunnel.email.sink;
+
+import org.apache.seatunnel.api.table.type.SeaTunnelRow;
+import org.apache.seatunnel.api.table.type.SeaTunnelRowType;
+import org.apache.seatunnel.connectors.seatunnel.common.sink.AbstractSinkWriter;
+import org.apache.seatunnel.connectors.seatunnel.email.config.EmailSinkConfig;
+
+import org.apache.seatunnel.shade.com.typesafe.config.Config;
+
+import com.sun.mail.util.MailSSLSocketFactory;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import javax.activation.DataHandler;
+import javax.activation.DataSource;
+import javax.activation.FileDataSource;
+import javax.mail.Authenticator;
+import javax.mail.BodyPart;
+import javax.mail.Message;
+import javax.mail.Multipart;
+import javax.mail.PasswordAuthentication;
+import javax.mail.Session;
+import javax.mail.Transport;
+import javax.mail.internet.InternetAddress;
+import javax.mail.internet.MimeBodyPart;
+import javax.mail.internet.MimeMessage;
+import javax.mail.internet.MimeMultipart;
+
+import java.io.File;
+import java.io.FileWriter;
+import java.io.IOException;
+import java.util.Properties;
+
+public class EmailSinkWriter extends AbstractSinkWriter<SeaTunnelRow, Void> {
+
+    private static final Logger LOGGER = LoggerFactory.getLogger(EmailSinkWriter.class);
+
+    private final SeaTunnelRowType seaTunnelRowType;
+    private EmailSinkConfig config;
+    private StringBuffer stringBuffer;
+
+    public EmailSinkWriter(SeaTunnelRowType seaTunnelRowType, Config pluginConfig) {
+        this.seaTunnelRowType = seaTunnelRowType;
+        this.config = new EmailSinkConfig(pluginConfig);
+        this.stringBuffer = new StringBuffer();
+    }
+
+    @Override
+    public void write(SeaTunnelRow element) {
+        Object[] fields = element.getFields();
+
+        for (Object field : fields) {
+            stringBuffer.append(field.toString() + ",");
+        }
+        stringBuffer.deleteCharAt(fields.length - 1);
+        stringBuffer.append("\n");
+
+    }
+
+    @Override
+    public void close() {
+        createFile();
+        Properties properties = new Properties();
+
+        properties.setProperty("mail.host", "smtp.qq.com");
+
+        properties.setProperty("mail.transport.protocol", "smtp");
+
+        properties.setProperty("mail.smtp.auth", "true");

Review Comment:
   Same problem as above, and these methods may not be appropriate in `close` method



-- 
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: commits-unsubscribe@seatunnel.apache.org

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


[GitHub] [incubator-seatunnel] CalvinKirs commented on pull request #2304: [Connector-V2] Add Email sink connector

Posted by GitBox <gi...@apache.org>.
CalvinKirs commented on PR #2304:
URL: https://github.com/apache/incubator-seatunnel/pull/2304#issuecomment-1202302889

   Hi, please update the documentation to describe the new feature. https://github.com/apache/incubator-seatunnel/tree/dev/docs


-- 
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: commits-unsubscribe@seatunnel.apache.org

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


[GitHub] [incubator-seatunnel] Hisoka-X commented on a diff in pull request #2304: [Connector-V2] Add Email sink connector

Posted by GitBox <gi...@apache.org>.
Hisoka-X commented on code in PR #2304:
URL: https://github.com/apache/incubator-seatunnel/pull/2304#discussion_r936206509


##########
docs/en/connector-v2/source/Email.md:
##########
@@ -0,0 +1,71 @@
+# Email
+
+## Description
+
+Send the data as a file to email.
+
+ The tested kudu version is 1.5.6.
+
+## Options
+
+| name                     | type    | required | default value |
+|--------------------------|---------|----------|---------------|
+| email_from_address             | string  | yes      | -             |
+| email_to_address               | string  | yes      | -             |
+| email_host               | string  | yes      | -             |
+| email_transport_protocol             | string  | yes      | -             |
+| email_smtp_auth               | string  | yes      | -             |
+| email_authorization_code               | string  | yes      | -             |
+| email_message_headline             | string  | yes      | -             |
+| email_message_content               | string  | yes      | -             |
+
+
+### email_from_address [string]
+
+Sender Email Address .
+
+### email_to_address [string]
+
+Address to receive mail.
+
+### email_host [string]
+
+SMTP server to connect to.
+
+### email_transport_protocol [string]
+
+The protocol to load the session .
+
+### email_smtp_auth [string]
+
+Whether to authenticate the customer.
+
+### email_authorization_code [string]
+
+authorization code,You can obtain the authorization code from the mailbox Settings.
+
+### email_message_headline [string]
+
+The subject line of the entire message.
+
+### email_message_content [string]
+
+The body of the entire message.
+
+
+## Example
+
+```bash
+
+ EmailSink {
+      email_from_address = "xxxxxx@qq.com"
+      email_to_address = "xxxxxx@163.com"
+      email_host="smtp.qq.com"
+      email_transport_protocol="smtp"
+      email_smtp_auth="true"
+      email_authorization_code=""
+      email_message_headline="这个是标题"

Review Comment:
   Please use Englinsh in content



##########
docs/en/connector-v2/source/Email.md:
##########
@@ -0,0 +1,71 @@
+# Email
+
+## Description
+
+Send the data as a file to email.
+
+ The tested kudu version is 1.5.6.

Review Comment:
   Please remove this.



-- 
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: commits-unsubscribe@seatunnel.apache.org

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


[GitHub] [incubator-seatunnel] 2013650523 commented on pull request #2304: [Connector-V2] Add Email sink connector

Posted by GitBox <gi...@apache.org>.
2013650523 commented on PR #2304:
URL: https://github.com/apache/incubator-seatunnel/pull/2304#issuecomment-1203408504

   > Hi, please update the documentation to describe the new feature. https://github.com/apache/incubator-seatunnel/tree/dev/docs
   
   done;


-- 
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: commits-unsubscribe@seatunnel.apache.org

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


[GitHub] [incubator-seatunnel] CalvinKirs commented on a diff in pull request #2304: [Connector-V2] Add Email sink connector

Posted by GitBox <gi...@apache.org>.
CalvinKirs commented on code in PR #2304:
URL: https://github.com/apache/incubator-seatunnel/pull/2304#discussion_r934117191


##########
seatunnel-connectors-v2/connector-email/src/main/java/org/apache/seatunnel/connectors/seatunnel/email/sink/EmailSinkWriter.java:
##########
@@ -0,0 +1,158 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.seatunnel.connectors.seatunnel.email.sink;
+
+import org.apache.seatunnel.api.table.type.SeaTunnelRow;
+import org.apache.seatunnel.api.table.type.SeaTunnelRowType;
+import org.apache.seatunnel.connectors.seatunnel.common.sink.AbstractSinkWriter;
+import org.apache.seatunnel.connectors.seatunnel.email.config.EmailSinkConfig;
+
+import org.apache.seatunnel.shade.com.typesafe.config.Config;
+
+import com.sun.mail.util.MailSSLSocketFactory;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import javax.activation.DataHandler;
+import javax.activation.DataSource;
+import javax.activation.FileDataSource;
+import javax.mail.Authenticator;
+import javax.mail.BodyPart;
+import javax.mail.Message;
+import javax.mail.Multipart;
+import javax.mail.PasswordAuthentication;
+import javax.mail.Session;
+import javax.mail.Transport;
+import javax.mail.internet.InternetAddress;
+import javax.mail.internet.MimeBodyPart;
+import javax.mail.internet.MimeMessage;
+import javax.mail.internet.MimeMultipart;
+
+import java.io.File;
+import java.io.FileWriter;
+import java.io.IOException;
+import java.util.Properties;
+
+public class EmailSinkWriter extends AbstractSinkWriter<SeaTunnelRow, Void> {
+
+    private static final Logger LOGGER = LoggerFactory.getLogger(EmailSinkWriter.class);
+
+    private final SeaTunnelRowType seaTunnelRowType;
+    private EmailSinkConfig config;
+    private StringBuffer stringBuffer;
+
+    public EmailSinkWriter(SeaTunnelRowType seaTunnelRowType, Config pluginConfig) {
+        this.seaTunnelRowType = seaTunnelRowType;
+        this.config = new EmailSinkConfig(pluginConfig);
+        this.stringBuffer = new StringBuffer();
+    }
+
+    @Override
+    public void write(SeaTunnelRow element) {
+        Object[] fields = element.getFields();
+
+        for (Object field : fields) {
+            stringBuffer.append(field.toString() + ",");
+        }
+        stringBuffer.deleteCharAt(fields.length - 1);
+        stringBuffer.append("\n");
+
+    }
+
+    @Override
+    public void close() {
+        createFile();
+        Properties properties = new Properties();
+
+        properties.setProperty("mail.host", "smtp.qq.com");

Review Comment:
   This parameter should be handed over to user control



-- 
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: commits-unsubscribe@seatunnel.apache.org

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


[GitHub] [incubator-seatunnel] Hisoka-X merged pull request #2304: [Connector-V2] Add Email sink connector

Posted by GitBox <gi...@apache.org>.
Hisoka-X merged PR #2304:
URL: https://github.com/apache/incubator-seatunnel/pull/2304


-- 
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: commits-unsubscribe@seatunnel.apache.org

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


[GitHub] [incubator-seatunnel] 2013650523 commented on a diff in pull request #2304: [Connector-V2] Add Email sink connector

Posted by GitBox <gi...@apache.org>.
2013650523 commented on code in PR #2304:
URL: https://github.com/apache/incubator-seatunnel/pull/2304#discussion_r935262507


##########
seatunnel-connectors-v2/connector-email/src/main/java/org/apache/seatunnel/connectors/seatunnel/email/sink/EmailSinkWriter.java:
##########
@@ -0,0 +1,158 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.seatunnel.connectors.seatunnel.email.sink;
+
+import org.apache.seatunnel.api.table.type.SeaTunnelRow;
+import org.apache.seatunnel.api.table.type.SeaTunnelRowType;
+import org.apache.seatunnel.connectors.seatunnel.common.sink.AbstractSinkWriter;
+import org.apache.seatunnel.connectors.seatunnel.email.config.EmailSinkConfig;
+
+import org.apache.seatunnel.shade.com.typesafe.config.Config;
+
+import com.sun.mail.util.MailSSLSocketFactory;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+import javax.activation.DataHandler;
+import javax.activation.DataSource;
+import javax.activation.FileDataSource;
+import javax.mail.Authenticator;
+import javax.mail.BodyPart;
+import javax.mail.Message;
+import javax.mail.Multipart;
+import javax.mail.PasswordAuthentication;
+import javax.mail.Session;
+import javax.mail.Transport;
+import javax.mail.internet.InternetAddress;
+import javax.mail.internet.MimeBodyPart;
+import javax.mail.internet.MimeMessage;
+import javax.mail.internet.MimeMultipart;
+
+import java.io.File;
+import java.io.FileWriter;
+import java.io.IOException;
+import java.util.Properties;
+
+public class EmailSinkWriter extends AbstractSinkWriter<SeaTunnelRow, Void> {
+
+    private static final Logger LOGGER = LoggerFactory.getLogger(EmailSinkWriter.class);
+
+    private final SeaTunnelRowType seaTunnelRowType;
+    private EmailSinkConfig config;
+    private StringBuffer stringBuffer;
+
+    public EmailSinkWriter(SeaTunnelRowType seaTunnelRowType, Config pluginConfig) {
+        this.seaTunnelRowType = seaTunnelRowType;
+        this.config = new EmailSinkConfig(pluginConfig);
+        this.stringBuffer = new StringBuffer();
+    }
+
+    @Override
+    public void write(SeaTunnelRow element) {
+        Object[] fields = element.getFields();
+
+        for (Object field : fields) {
+            stringBuffer.append(field.toString() + ",");
+        }
+        stringBuffer.deleteCharAt(fields.length - 1);

Review Comment:
   ok,What file formats would you like to have in the future? PDF?



-- 
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: commits-unsubscribe@seatunnel.apache.org

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


[GitHub] [incubator-seatunnel] Hisoka-X commented on pull request #2304: [Connector-V2] Add Email sink connector

Posted by GitBox <gi...@apache.org>.
Hisoka-X commented on PR #2304:
URL: https://github.com/apache/incubator-seatunnel/pull/2304#issuecomment-1200591460

   Hi, please resolve confilt first. Thanks


-- 
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: commits-unsubscribe@seatunnel.apache.org

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


[GitHub] [incubator-seatunnel] 2013650523 commented on a diff in pull request #2304: [Connector-V2] Add Email sink connector

Posted by GitBox <gi...@apache.org>.
2013650523 commented on code in PR #2304:
URL: https://github.com/apache/incubator-seatunnel/pull/2304#discussion_r936219552


##########
docs/en/connector-v2/source/Email.md:
##########
@@ -0,0 +1,71 @@
+# Email
+
+## Description
+
+Send the data as a file to email.
+
+ The tested kudu version is 1.5.6.
+
+## Options
+
+| name                     | type    | required | default value |
+|--------------------------|---------|----------|---------------|
+| email_from_address             | string  | yes      | -             |
+| email_to_address               | string  | yes      | -             |
+| email_host               | string  | yes      | -             |
+| email_transport_protocol             | string  | yes      | -             |
+| email_smtp_auth               | string  | yes      | -             |
+| email_authorization_code               | string  | yes      | -             |
+| email_message_headline             | string  | yes      | -             |
+| email_message_content               | string  | yes      | -             |
+
+
+### email_from_address [string]
+
+Sender Email Address .
+
+### email_to_address [string]
+
+Address to receive mail.
+
+### email_host [string]
+
+SMTP server to connect to.
+
+### email_transport_protocol [string]
+
+The protocol to load the session .
+
+### email_smtp_auth [string]
+
+Whether to authenticate the customer.
+
+### email_authorization_code [string]
+
+authorization code,You can obtain the authorization code from the mailbox Settings.
+
+### email_message_headline [string]
+
+The subject line of the entire message.
+
+### email_message_content [string]
+
+The body of the entire message.
+
+
+## Example
+
+```bash
+
+ EmailSink {
+      email_from_address = "xxxxxx@qq.com"
+      email_to_address = "xxxxxx@163.com"
+      email_host="smtp.qq.com"
+      email_transport_protocol="smtp"
+      email_smtp_auth="true"
+      email_authorization_code=""
+      email_message_headline="这个是标题"

Review Comment:
   Done;



-- 
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: commits-unsubscribe@seatunnel.apache.org

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


[GitHub] [incubator-seatunnel] CalvinKirs commented on pull request #2304: [Connector-V2] Add Email sink connector

Posted by GitBox <gi...@apache.org>.
CalvinKirs commented on PR #2304:
URL: https://github.com/apache/incubator-seatunnel/pull/2304#issuecomment-1200656952

   please update the documentation to describe the new feature. https://github.com/apache/incubator-seatunnel/tree/dev/docs


-- 
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: commits-unsubscribe@seatunnel.apache.org

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