MCPcopy Create free account
hub / github.com/MailCore/mailcore2 / attachmentWithHTMLString

Method attachmentWithHTMLString

src/core/rfc822/MCAttachment.cpp:184–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182}
183
184Attachment * Attachment::attachmentWithHTMLString(String * htmlString)
185{
186 Data * data;
187 Attachment * attachment;
188
189 attachment = new Attachment();
190 attachment->setInlineAttachment(true);
191 attachment->setMimeType(MCSTR("text/html"));
192 data = htmlString->dataUsingEncoding("utf-8");
193 attachment->setData(data);
194
195 return (Attachment *) attachment->autorelease();
196}
197
198Attachment * Attachment::attachmentWithRFC822Message(Data * messageData)
199{

Callers

nothing calls this directly

Calls 5

dataUsingEncodingMethod · 0.80
setInlineAttachmentMethod · 0.45
setMimeTypeMethod · 0.45
setDataMethod · 0.45
autoreleaseMethod · 0.45

Tested by

no test coverage detected