SendMail.kt@Service| Propriété | Déclaration |
|---|---|
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) |
| Fonction | Paramètres | Retour |
|---|---|---|
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 | Ce qui a changé |
|---|---|
868d6abb75 | 2025 -> 2026 |
b309e9be9c | MailAttachments amélioré (a affecté BirthdayButler, Polls). L'e-mail est envoyé automatiquement si la vérification de cohérence nocturne comporte des erreurs. |
63081666f6 | En-têtes des fichiers source : 2024 -> 2025. |
b405cf643c | WIP |
67805f2fc1 | ThreadLocalUserContext.user -> ThreadLocalUserContext.loggedInUser (renommé pour éviter les malentendus dans le code). |
77bade6dfb | javax.* -> jakarta.* |
b6092df092 | Copyright 2023 -> 2024 |
a25c868cbc | SendMail refactorisé (partie Genome supprimée). |
ab45d51fa4 | Copyright 2001-2022 -> 2001-2023. |
73b0be50b2 | org.apache.commons.collections -> org.apache.commons.collections4 |
38bec971af | ThreadLocal -> Kotlin |
eec2608215 | I18nHelper.getLocalizedMessage(user, ...) implémenté pour obtenir la traduction pour un utilisateur donné (utilisé par ex. pour les notifications par e-mail afin de déterminer au mieux la locale de l'utilisateur). |
24a051884e | SendMail -> Kotlin (correctifs) |
71754f1061 | SendMail : la carte de données autorise les valeurs nulles. |
9b10171715 | Test corrigé. |
bc6e7c72d4 | SendMail -> Kotlin |
e428c924d4 | SendMail Kotlin -> Groovy (en raison de problèmes avec Powermock). |
c1d6f116a7 | En-têtes des fichiers source corrigés. |
5955e0edd2 | Bogue du logo corrigé. |
0fb0c21b81 | WIP : service de messagerie. La gestion du logo est désormais assurée par ConfigurationService (pas encore terminée). |
c5e6d921b5 | GroovyEngine et SendMail -> Kotlin. |