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.
- Connector is a java based extension which can be integrated with external services and reused in many Wavemaker applications.
- Each connector can work as an SDK for an external system.
- Connectors can be imported once in a WaveMaker application and used many times in the applications by creating multiple instances.
- Connectors are executed in its own container in the WaveMaker application, as a result there are no dependency version conflict issues between connectors.
This connector will provides an easy apis to send bulk emails from WaveMaker application.
- Email server with server host name & port no and email server credentials
- Java 1.8 or above
- Maven 3.1.0 or above
- Any java editor such as Eclipse, Intelij..etc
- Internet connection
You can build this connector using following command
mvn clean install
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
@Autowired
private EmailConnector emailConnector;
SimpleMailMessage message = new SimpleMailMessage();
message.setSubject("WaveMaker Invitation");
message.setTo("sender@gmail.com");
message.setFrom("receiver@gmail.com");
Map<String, String> 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.