Převod e-mailových zpráv v PHP
Contents
[
Hide
]
Aspose.Email – Převod e‑mailových zpráv
Pro převod e‑mailových zpráv pomocí Aspose.Email Java pro PHP zavolejte metodu convert_eml_to_msg modulu Converter. Zde je ukázkový kód.
PHP kód
public static function convert_eml_to_msg($dataDir=null){
\# Initialize and Load an existing EML file by specifying the MessageFormat
$mailMessage=new MailMessage();
$eml = $mailMessage->load($dataDir . "Message.eml");
\# Save the Email message to disk in Unicode format
$saveOptions=new SaveOptions();
$eml->save($dataDir . "AnEmail.msg", $saveOptions->getDefaultMsgUnicode());
\# Display Status
print "Converted email to msg successfully.".PHP_EOL;
}
Stáhnout běžící kód
Stáhněte Převod e‑mailových zpráv (Aspose.Email) z kteréhokoli z níže uvedených sociálních kódovacích webů: