2009-04-15 66 views
0

我試圖將用戶從我的本地應用發送到郵件應用。我希望在郵件的正文中嵌入一個標籤。我知道這是可能的,因爲'LOL貓'的應用程序。我一直試圖沒有成功:從包含img標籤的iPhone應用發送電子郵件

NSString *url1 = [NSString stringWithFormat:@"mailto:[email protected]?subject=Check%20Out%20This%20Faux%20Screen&body=<img%20src=\"http://www.sample.com/FauxFoneServer/screenShot/getScreenByID?cur=%@\"/>The%20awesome%20person%20who%20sent%20you%20this%20email%20thinks%20you%20should%20visit%20http://www.fauxscreen.com" 
         ,[ScreenShotsAppDelegate sharedDelegate].viewController.curImage.imageID]; 
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:url1]]; 
+0

看看這個SO問題。 [http://stackoverflow.com/questions/531623](http://stackoverflow.com/questions/531623) – epatel 2009-07-16 20:28:02

回答

1

當你打電話給openURL會發生什麼?

您可以嘗試編碼引號(%22),小於(%3C)和大於(%3E)字符。

+0

好的建議,但仍然沒有去。它不會創建一個錯誤,它只是不啓動郵件應用程序。我嘗試了在身體中沒有HTML,它工作正常 – 2009-04-15 17:37:27

相關問題