feature request #9758
closed
Added by Andreas Kohlbecker over 2 years ago.
Updated over 2 years ago.
Description
A service to send emails
Configuration of the following properties should be possible via a Spring-PropertySource:
# ===============================
# = MAIL configurations
# ===============================
mail:
default-encoding: UTF-8
host: mail.bgbm.org
username: sender@bgbm.org
password: 09182309812
port: 587
# host: mailrelay.fu-berlin.de
# username: test
# password: test
# port:
properties:
mail:
smtp:
auth: true
starttls:
enable: true
protocol: smtp
test-connection: false
For the actually implemented solution, see below ....
We can use the org.springframework.mail.javamail.JavaMailSenderImpl
instead of implementing our own service
- Status changed from New to In Progress
- Assignee changed from Andreas Müller to Andreas Kohlbecker
- Description updated (diff)
- Description updated (diff)
the mail configuration section in a aspplication.properties file for the currently implemented SendEmailConfigurer
# ===============================
# = MAIL configurations
# ===============================
mail.default-encoding: UTF-8
mail.host: smtp.web.de
mail.from-address: kohlbecker@web.de
mail.username: kohlbecker@web.de
mail.password: ********
mail.port: 587
# JavaMailProperties
mail.smtp.auth: true
mail.smtp.starttls.enable: true
# this properties allows for disabling the mail agent
mail.disabled: false
- Description updated (diff)
- Status changed from In Progress to Resolved
- % Done changed from 0 to 50
- Target version changed from Release 5.45 to Release 5.27
- Status changed from Resolved to Closed
- % Done changed from 50 to 100
implemented, covered by integration tests and not causing problem in existing apps -> can be closed
Also available in: Atom
PDF