![](/img/trans.png)
[英]Flex, using navigateToURL to send an AMF object and open the response in a new window
[英]Is it possible to send HTML Email through Flash using navigateToURL()?
我正在嘗試使用AS3的navigateToURL()
函數在Adobe AIR應用程序中發送電子郵件。 我已經成功發送了純文本,但是想知道是否有一種方法可以將content-type
設置為text/html
因為現在它會將HTML作為括號發送。
示例代碼:
navigateToURL(new URLRequest("mailto:me@domaincom"+"?"+"subject=Egad, an email!"+"&"+"body="+"I'm a little <b>teapot</b> short and stout,"+"%0A"+"Here is my <i>handle</i> and here is my spout..."));
當前它將輸出以下內容:
我有點矮矮胖胖的<b>茶壺</ b>
這是我的<i>手柄</ i>,這是我的壺嘴...
我希望得到這個:
我是個矮矮胖小的茶壺 ,
and here is my spout... 這是我的 ,這是我的壺嘴...
謝謝。 :)
URLRequest具有屬性contentType,您嘗試將其設置為“ text / html”嗎?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.