You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
final transformer =MimeMessageTransformer(transformConfiguration);
188
-
return transformer.toHtml(this);
193
+
return transformer.toDocument(this);
194
+
}
195
+
196
+
/// Transforms this message to HTML code.
197
+
///
198
+
/// Set [blockExternalImages] to `true` in case external images should be blocked.
199
+
/// Optionally specify the [maxImageWidth] to set the maximum width for embedded images.
200
+
/// Optionally specify the [emptyMessageText] for messages that contain no other content.
201
+
/// Optionally specify the [transformConfiguration] to control all aspects of the transformation - in that case other parameters are ignored.
202
+
StringtransformToHtml({
203
+
bool blockExternalImages,
204
+
int maxImageWidth,
205
+
String emptyMessageText,
206
+
TransformConfiguration transformConfiguration,
207
+
}) {
208
+
final document =transformToDocument(
209
+
blockExternalImages: blockExternalImages,
210
+
maxImageWidth: maxImageWidth,
211
+
emptyMessageText: emptyMessageText,
212
+
transformConfiguration: transformConfiguration);
213
+
return document.outerHtml;
214
+
}
215
+
216
+
/// Transforms this message to the innter BODY HTML code.
217
+
///
218
+
/// Set [blockExternalImages] to `true` in case external images should be blocked.
219
+
/// Optionally specify the [maxImageWidth] to set the maximum width for embedded images.
220
+
/// Optionally specify the [emptyMessageText] for messages that contain no other content.
221
+
/// Optionally specify the [transformConfiguration] to control all aspects of the transformation - in that case other parameters are ignored.
222
+
StringtransformToBodyInnerHtml({
223
+
bool blockExternalImages,
224
+
int maxImageWidth,
225
+
String emptyMessageText,
226
+
TransformConfiguration transformConfiguration,
227
+
}) {
228
+
final document =transformToDocument(
229
+
blockExternalImages: blockExternalImages,
230
+
maxImageWidth: maxImageWidth,
231
+
emptyMessageText: emptyMessageText,
232
+
transformConfiguration: transformConfiguration);
233
+
return document.body.innerHtml;
234
+
}
235
+
236
+
/// Quotes the body of this message for editing HTML.
237
+
///
238
+
/// Optionally specify the [quoteHeaderTemplate], defaults to `MailConventions.defaultReplyHeaderTemplate`, for forwarding you can use the `MailConventions.defaultForwardHeaderTemplate`.
239
+
/// Set [blockExternalImages] to `true` in case external images should be blocked.
240
+
/// Optionally specify the [maxImageWidth] to set the maximum width for embedded images.
241
+
/// Optionally specify the [emptyMessageText] for messages that contain no other content.
242
+
/// Optionally specify the [transformConfiguration] to control all aspects of the transformation - in that case other parameters are ignored.
0 commit comments