mirror of https://github.com/M66B/FairEmail.git
Check content on send
This commit is contained in:
parent
4a5f4f7ba9
commit
d557a9bd1a
|
@ -318,6 +318,9 @@ public class ServiceSend extends ServiceBase {
|
||||||
if (ident == null)
|
if (ident == null)
|
||||||
throw new IllegalArgumentException("Identity not found");
|
throw new IllegalArgumentException("Identity not found");
|
||||||
|
|
||||||
|
if (!message.content)
|
||||||
|
throw new IllegalArgumentException("Message body missing");
|
||||||
|
|
||||||
// Create message
|
// Create message
|
||||||
Properties props = MessageHelper.getSessionProperties();
|
Properties props = MessageHelper.getSessionProperties();
|
||||||
Session isession = Session.getInstance(props, null);
|
Session isession = Session.getInstance(props, null);
|
||||||
|
|
Loading…
Reference in New Issue