Package io.micronaut.email
Class MultipartBody
java.lang.Object
io.micronaut.email.MultipartBody
- All Implemented Interfaces:
Body
Multipart bodies represent an HTML and text version of the
same body content. For providers that support falling back
to text for simple email clients both bodies will be sent. For
clients that only support a single body, the HTML content will
be sent.
- Since:
- 1.0.0
- Author:
- James Kleeh, Sergio del Amo
-
Constructor Summary
ConstructorDescriptionMultipartBody
(@NonNull Body html, @NonNull Body text) MultipartBody
(@NonNull Body html, @NonNull String text) MultipartBody
(@NonNull String html, @NonNull Body text) MultipartBody
(@NonNull String html, @NonNull String text) -
Method Summary
-
Constructor Details
-
MultipartBody
- Parameters:
html
- The HTML contenttext
- The text content
-
MultipartBody
- Parameters:
html
- The HTML contenttext
- The text content
-
MultipartBody
- Parameters:
html
- The HTML contenttext
- The text content
-
MultipartBody
- Parameters:
html
- The HTML contenttext
- The text content
-
-
Method Details