Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Connector-V2] Add Email sink connector #2304

Merged
merged 29 commits into from
Aug 3, 2022
Merged

Conversation

2013650523
Copy link
Contributor

@2013650523 2013650523 commented Jul 30, 2022

Purpose of this pull request

Check list

@davidzollo davidzollo added the First-time contributor First-time contributor label Jul 31, 2022
@Hisoka-X
Copy link
Member

Hisoka-X commented Aug 1, 2022

Hi, please resolve ci error first. Thanks

@Hisoka-X Hisoka-X assigned Hisoka-X and 2013650523 and unassigned Hisoka-X Aug 1, 2022
@CalvinKirs
Copy link
Member

CalvinKirs commented Aug 1, 2022

If any new Jar binary package adding in your PR, please add License Notice according
New License Guide

createFile();
Properties properties = new Properties();

properties.setProperty("mail.host", "smtp.qq.com");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This parameter should be handed over to user control

Comment on lines 84 to 86
properties.setProperty("mail.transport.protocol", "smtp");

properties.setProperty("mail.smtp.auth", "true");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same problem as above, and these methods may not be appropriate in close method

Comment on lines +66 to +72
public void write(SeaTunnelRow element) {
Object[] fields = element.getFields();

for (Object field : fields) {
stringBuffer.append(field.toString() + ",");
}
stringBuffer.deleteCharAt(fields.length - 1);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@CalvinKirs
Copy link
Member

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

@2013650523
Copy link
Contributor Author

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

done;


Send the data as a file to email.

The tested kudu version is 1.5.6.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove this.

email_transport_protocol="smtp"
email_smtp_auth="true"
email_authorization_code=""
email_message_headline="这个是标题"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use Englinsh in content

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done;

@Hisoka-X Hisoka-X merged commit 96f2a15 into apache:dev Aug 3, 2022
TyrantLucifer pushed a commit to TyrantLucifer/incubator-seatunnel that referenced this pull request Sep 18, 2022
* 0

* Update pom.xml

add kudu dependency

* Update plugin-mapping.properties

add kudu config

* Update pom.xml

add kudu

* add email sink connector

* Delete seatunnel-connectors-v2/connector-email directory

* Update plugin-mapping.properties

* Update plugin-mapping.properties

* Update pom.xml

* Create pom.xml

* [Connector-V2] Add Kudu source and sink connector

* [Connector-V2] Add Kudu source and sink connector

* [Connector-V2] Add Email sink connector

* Update pom.xml

* Update pom.xml

* Delete seatunnel-connectors-v2/connector-kudu directory

* Update pom.xml

* Update plugin-mapping.properties

* Update pom.xml

* [Connector-V2] update codestyle pom.xml

* [Connector-V2] update config

* [Connector-V2] update license

* [Connector-V2] update email package version 1.5.6

* [Connector-V2] fix problem on code review

* [Connector-V2] add Email usage document

* Update Email.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants