Transform EMAIL to MD in Andorid Apps
Desing Andorid applications to export EMAIL to MD by using Andorid via Java API
How to Render EMAIL to MD in Andorid Applications
Andorid Apps are easy to use for end users on daily bases. Day by day numbers of Andorid phones users are increasing. Using the powerful Aspose.Total for Android via Java File Format Automation libraries you can develope Email manipulation and convertion applications. You can convert EMAIL to MD by the combination of Aspose.Email for Android Java & Aspose.Words for Andorid Java . Using the first API you can convert EMAIL file format to HTML and by using second API, you can render HTML as MD.Convert EMAIL to MD in Andorid
- Open EMAIL file using MailMessage class
- Convert EMAIL to HTML by using save method
- Load HTML by using Document class
- Save the document to MD format using save method and set MD as SaveFormat
Get Started with Andorid via Java APIs
You can easily use Aspose.Total for Android via Java directly from Maven and install Aspose.Email for Android via Java and Aspose.Words for Andorid via Java in your applications.
Alternatively, you can get a ZIP file from downloads .
Code for EMAIL to MD Conversion in Andorid Apps
// load the EMAIL file to be converted
MailMessage message = MailMessage.load("sourceFile.msg");
// save EMAIL as a HTML
message.save("HtmlOutput.html", SaveOptions.getDefaultHtml());
// load HTML with an instance of Document
Document document = new Document("HtmlOutput.html");
// call save method while passing SaveFormat.MD
document.save("output.md", SaveFormat.MD);
What is EMAIL File Format
An email file has a specific format that is recognized by email programs. The format includes a header and a body, which are separated by a blank line. The header contains the senders email address, the recipients email address, the subject of the email, and the date and time the email was sent. The body of the email contains the actual message. Email files can be in either plain text or HTML format. HTML emails are more common these days, as they can include images and other formatting.
Read MoreWhat is MD File Format
Markdown is a lightweight and easy-to-use syntax for styling all forms of writing on the GitHub platform. From your READMEs and in-line comments to documentation for your repositories and blog posts, Markdown is designed to make writing on the web easy to read, easy to write, and still look great.In addition to the basics of Markdown, you can also include images, links, and code blocks in your documents. You can even use a subset of HTML in your Markdown documents if you need more control over the display of your content.Markdown is not a replacement for HTML, nor is it a replacement for a rich text editor. It is simply a way to make writing on the web more accessible and easy to read.
Read More