groupe-sii / ogham

Sending email, sms or whatever is a piece of cake
https://groupe-sii.github.io/ogham/
Apache License 2.0
21 stars 15 forks source link

Empty template fails #22

Closed aurelien-baudet closed 4 years ago

aurelien-baudet commented 9 years ago

When providing an empty template, the message can't be sent due to invalid mimetype. Should either fail with another error indicating that the template is empty (more easy to find how to fix it) or should allow it and provide a default mimetype.

aurelien-baudet commented 5 years ago

MultiContentTranslator, translated can be null due to variant => throw dedicated exception ?

aurelien-baudet commented 4 years ago

This case is different from a template not found because the template is found but its content is just empty. So there should not report an error. The aim is to let developer test Ogham quickly even without template content.

Implemented behavior: