mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-28 03:46:00 +01:00
Added attachments to templates
This commit is contained in:
@@ -326,7 +326,8 @@ public class ServiceExternal extends ServiceBase {
|
||||
new InternetAddress(identity.get(0).email, identity.get(0).name, StandardCharsets.UTF_8.name())};
|
||||
if (subject == null) // Allow empty string
|
||||
subject = answers.get(0).name;
|
||||
String body = answers.get(0).getHtml(context, to);
|
||||
EntityAnswer.Data answerData = answers.get(0).getData(context, to);
|
||||
String body = answerData.getHtml();
|
||||
|
||||
EntityMessage msg = new EntityMessage();
|
||||
msg.account = identity.get(0).account;
|
||||
@@ -356,6 +357,8 @@ public class ServiceExternal extends ServiceBase {
|
||||
msg.preview,
|
||||
null);
|
||||
|
||||
answerData.insertAttachments(context, msg.id);
|
||||
|
||||
EntityOperation.queue(context, msg, EntityOperation.SEND);
|
||||
ServiceSend.start(context);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user