Finished signature support for outgoing mail
This commit is contained in:
parent
4516cdee24
commit
61d60c13d2
@ -17,4 +17,7 @@ fetch('/config/get/mail', {
|
||||
if (mailSettings.notificationSetting === false){
|
||||
document.getElementById('notificationSetting').checked = false
|
||||
}
|
||||
if (mailSettings.signature !== false){
|
||||
document.getElementById('mailSignatureSetting').value = mailSettings.signature
|
||||
}
|
||||
})
|
@ -46,6 +46,10 @@ function sendMail(toData, message, subject){
|
||||
message = padString(message)
|
||||
}
|
||||
|
||||
if (document.getElementById('mailSignatureSetting').value !== false){
|
||||
message += "\n"
|
||||
message += document.getElementById('mailSignatureSetting').value
|
||||
}
|
||||
|
||||
postData = {'message': message, 'to': toData, 'type': 'pm', 'encrypt': true, 'meta': JSON.stringify(meta)}
|
||||
postData.forward = document.getElementById('forwardSecrecySetting').checked
|
||||
|
Loading…
Reference in New Issue
Block a user