@Bean
    @ConditionalOnProperty(name = WebhookModule.NAME, havingValue = "true", matchIfMissing = true)
    public WebhookSender webhookSender(AlarmSenderProperties alarmSenderProperties,
                                       UserService userService,
                                       RestTemplate restTemplate,
                                       WebhookService webhookService) {
        String pinpointUrl = alarmSenderProperties.getPinpointUrl();
        String batchEnv = alarmSenderProperties.getBatchEnv();

        WebhookPayloadFactory webhookPayloadFactory = new WebhookPayloadFactory(pinpointUrl, batchEnv);
        return new WebhookSenderImpl(webhookPayloadFactory, userService, restTemplate, webhookService);
    }
JavaMailSenderImpl Properties
<a href="https://javaee.github.io/javamail/docs/api/com/sun/mail/smtp/package-summary.html">...</a>
batch-alarmsender/src/main/java/com/navercorp/pinpoint/batch/alarm/AlarmSenderConfiguration.java