SendMail.kt@Service| Property | Declaration |
|---|---|
configurationService | ConfigurationService |
domainService | DomainService |
mailingEnabled | String? = null |
mailFromStandardEmailSender | String? = null |
mailSmtpEncryptionProtocol | String? = null |
mailLocalHost | String? = null |
mailSmtpHost | String? = null |
mailSmtpPort | String? = null |
mailSmtpAuth | false |
mailSmtpUser | String? = null |
mailSmtpPassword | String? = null |
random | Random() |
to | composedMessage.to |
isConfigured | Boolean |
session | Session? |
properties | Properties() |
session | session |
message | MimeMessage(session) |
subject | composedMessage.subject |
mp | createMailAttachmentContent(message, composedMessage, icalContent, attachments, CHARSET) |
| Function | Parameters | Return |
|---|---|---|
fromString | type: String? | Protocol |
postConstruct | | Unit |
send | composedMessage: Mail?,
attachments: Collection<IMailAttachment>? | Boolean |
send | composedMessage: Mail?,
icalContent: String? = null,
attachments: Collection<IMailAttachment>? = null,
async: Boolean = true | Boolean |
sendIt | composedMessage: Mail, icalContent: String?,
attachments: Collection<IMailAttachment>? | Unit |
createMailAttachmentContent | message: MimeMessage, composedMessage: Mail, icalContent: String?,
attachments: Collection<IMailAttachment>?,
charset: String | MimeMultipart |
renderGroovyTemplate | composedMessage: Mail, groovyTemplate: String,
data: MutableMap<String, Any?>,
title: String,
recipient: PFUserDO? | String |
renderKotlinTemplate | composedMessage: Mail, kotlinTemplate: String,
data: MutableMap<String, Any?>,
title: String,
recipient: PFUserDO | String |
prepare | composedMessage: Mail,
data: MutableMap<String, Any?>,
title: String,
recipient: PFUserDO? | Unit |
buildUrl | subPath: String? | String |
getProjectForgeSubject | subject: String | String |
formatUserWithMail | name: String, mail: String? | String |
internalSetTestMode | | Unit |
| Commit | What changed |
|---|---|
868d6abb75 | 2025 -> 2026 |
b309e9be9c | MailAttachments improved (effected BirthdayButler, Polls). E-Mail is sent automatically, if nightly sanity check has errors. |
63081666f6 | Source file headers: 2024-> 2025. |
b405cf643c | WIP |
67805f2fc1 | ThreadLocalUserContext.user -> ThreadLocalUserContext.loggedInUser (renamed for avoiding mis-understandings in code). |
77bade6dfb | javax.* -> jakarta.* |
b6092df092 | Copyright 2023 -> 2024 |
a25c868cbc | SendMail refactored (Genome part removed). |
ab45d51fa4 | Copyright 2001-2022 -> 2001-2023. |
73b0be50b2 | org.apache.commons.collections -> org.apache.commons.collections4 |
38bec971af | ThreadLocal -> Kotlin |
eec2608215 | I18nHelper.getLocalizedMessage(user, ...) implemented for getting translation for given user (used e. g. by mail notifications for determing the user's locale as best as possible). |
24a051884e | SendMail -> Kotlin (fixes) |
71754f1061 | SendMail: data map allows null values. |
9b10171715 | Test fixed. |
bc6e7c72d4 | SendMail -> Kotlin |
e428c924d4 | SendMail Kotlin -> Groovy (due to problems with Powermock). |
c1d6f116a7 | Source file headers fixed. |
5955e0edd2 | Logo bug fixed. |
0fb0c21b81 | WIP: mail service. Logo stuff handled now by ConfigurationService (not yet finished). |
c5e6d921b5 | GroovyEngine and SendMail -> Kotlin. |