This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.thinkmicroservices.ri.spring.sms.outbound.service.twilio; | |
| import org.springframework.boot.context.properties.ConfigurationProperties; | |
| import org.springframework.context.annotation.PropertySource; | |
| import org.springframework.stereotype.Component; | |
| /** | |
| * |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.thinkmicroservices.ri.spring.sms.outbound.service; | |
| import java.util.List; | |
| /** | |
| * | |
| * @author cwoodward | |
| */ | |
| public interface OutboundSmsService { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.thinkmicroservices.ri.spring.sms.outbound.model; | |
| import io.swagger.annotations.ApiModel; | |
| import io.swagger.annotations.ApiModelProperty; | |
| import java.util.List; | |
| import javax.validation.constraints.NotBlank; | |
| import lombok.Data; | |
| /** |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.thinkmicroservices.ri.spring.sms.outbound.model; | |
| import io.swagger.annotations.ApiModel; | |
| import io.swagger.annotations.ApiModelProperty; | |
| import javax.validation.constraints.NotBlank; | |
| import javax.validation.constraints.Size; | |
| import lombok.Data; | |
| @Data | |
| @ApiModel(description = "All details for a SMS request. ") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Twilio outbound sms/mms configuration | |
| --- | |
| authID: xxxxxx | |
| accountSID: yyyyy |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server: | |
| port: 8080 | |
| info: | |
| app: | |
| name: SMS Outbound Service | |
| description: Provides an integration point to an outbound SMS provider | |
| version: 1.0.0 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| spring: | |
| application: | |
| name: SMS-OUTBOUND-SERVICE | |
| cloud: | |
| config: | |
| fail-fast: true | |
| retry: | |
| max-attempts: 10 | |
| initial-interval: 1500 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <parent> | |
| <groupId>org.springframework.boot</groupId> | |
| <artifactId>spring-boot-starter-parent</artifactId> | |
| <version>2.1.8.RELEASE</version> | |
| <relativePath/> <!-- lookup parent from repository --> | |
| </parent> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## docker-compose -f ./dc-05-outbound-email.yml up -d | |
| version: "3.7" | |
| services: | |
| ############################################################## | |
| # INFRASTRUCTURE SERVICES | |
| ################ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # message_de.properties - German outbound email messages | |
| error.outbound.email.authentication=Authentifizierung beim Remote-Mail-Dienst nicht möglich | |
| error.outbound.email.send=E-Mail-Nachricht kann nicht gesendet werden | |
| error.outbound.email.generic=Mail-System-Ausnahme | |
| error.unsupported.attachment.protocol=Nicht unterstütztes Anhangsprotokoll | |
| error.unable.to.add.attachment=Anhang kann nicht hinzugefügt werden | |
| error.unable.to.send.mime.message=MIME-Nachricht kann nicht gesendet werden |