React Native
React Native
Load MIME Object from Email Object
See more Email Object Examples
Demonstrates how to load a Chilkat Mime object from a Chilkat Email object. (Copies the email into a Mime object.)Chilkat React Native Downloads
import { Email, Mime, StringBuilder } from '@chilkat/react-native'
function chilkatExample() {
const email = new Email();
email.loadEml('qa_data/eml/sample.eml');
// Write the full MIME of the email to a StringBuilder.
const sbMime = new StringBuilder();
email.getMimeSb(sbMime);
// Load the MIME object from the StringBuilder
const mime = new Mime();
mime.loadMimeSb(sbMime);
console.log(mime.getMime());
}