https://github.com/wavemaker/email-connector
https://github.com/wavemaker/email-connector
wavemaker-connector
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/wavemaker/email-connector
- Owner: wavemaker
- License: apache-2.0
- Created: 2020-07-02T09:37:09.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-10-21T06:27:14.000Z (over 1 year ago)
- Last Synced: 2025-03-25T17:22:15.379Z (about 1 year ago)
- Topics: wavemaker-connector
- Language: Java
- Homepage:
- Size: 43 KB
- Stars: 1
- Watchers: 5
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Connector Introduction
Connector is a Java based backend extension for WaveMaker applications. Connectors are built as Java modules & exposes java based SDK to interact with the connector implementation.
Each connector is built for a specific purpose and can be integrated with one of the external services. Connectors are imported & used in the WaveMaker application. Each connector runs on its own container thereby providing the ability to have it’s own version of the third party dependencies.
## Features of Connectors
1. Connector is a java based extension which can be integrated with external services and reused in many Wavemaker applications.
1. Each connector can work as an SDK for an external system.
1. Connectors can be imported once in a WaveMaker application and used many times in the applications by creating multiple instances.
1. Connectors are executed in its own container in the WaveMaker application, as a result there are no dependency version conflict issues between connectors.
## About Email Connector
## Email Connector Introduction
This connector will provides an easy apis to send bulk emails from WaveMaker application.
## Prerequisite
1. Email server with server host name & port no and email server credentials
1. Java 1.8 or above
1. Maven 3.1.0 or above
1. Any java editor such as Eclipse, Intelij..etc
1. Internet connection
## Build
You can build this connector using following command
```
mvn clean install
```
## Deploy
You can import connector dist/email.zip artifact in WaveMaker studio application using file upload option.
On after deploying email-connector in the WaveMaker studio application, make sure to update connector properties in the profile properties.Such as email server host name and port no, email server credentials
## Use email connector in WaveMaker
```
@Autowired
private EmailConnector emailConnector;
SimpleMailMessage message = new SimpleMailMessage();
message.setSubject("WaveMaker Invitation");
message.setTo("sender@gmail.com");
message.setFrom("receiver@gmail.com");
Map props = new HashMap<>();
props.put("user", "John");
try {
emailConnector.sendSimpleMailMessageWithTemplate(message, "templates/invitationtemplate", props);
} catch (EmailTemplateNotFoundException e) {
throw new RuntimeException("Exception occurred while sending email",e);
}
Apart from above api, email-connector provides other apis to send emails, visit EmailConnector java class in api module.
```