You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Setting up all necessary infrastructure to send emails from a Salespoint application seems to be quite tedious. I've already filed a ticket with Spring Boot to make this a more pleasant experience.
However, we could do a few things locally in Salespoint until this is fixed:
add the necessary dependencies
create some auto-configuration to kick in if developers define application properties for mail host, username and password
The text was updated successfully, but these errors were encountered:
When bootstrapping Salespoint an instance of JavaMailSenderImpl is registered as spring bean if the properties spring.mail.host, spring.mail.username and spring.mail.password are present and no bean of type MailSender is defined manually.
For testing scenarios declaring a manual implementation of MailSender should be used that e.g. logs the sent mail to the console.
When bootstrapping Salespoint an instance of JavaMailSenderImpl is registered as spring bean if the properties spring.mail.host, spring.mail.username and spring.mail.password are present and no bean of type MailSender is defined manually.
Added ConsoleWritingMailSender to replace the default one for testing scenarios so that no real SMTP server is required.
Setting up all necessary infrastructure to send emails from a Salespoint application seems to be quite tedious. I've already filed a ticket with Spring Boot to make this a more pleasant experience.
However, we could do a few things locally in Salespoint until this is fixed:
The text was updated successfully, but these errors were encountered: