2017-07-25 49 views
0

我有一個電子郵件服務,產生具有特定信息和2個鏈接按鈕的批准電子郵件......事情是,它是在電子郵件應用程序除iPhone上的Outlook移動應用程序的2個按鈕是沒有出現在這裏是我的鏈接按鈕的HTML從代碼中添加的背後:錨不與iPhone郵件正文工作

 strHtmlButton = "<tr><i><font size=\"2\" color=\"red\">Please click on one of the below Actions to automaticallygenereate an e-mail response. Make sure that the input comments are fed within quotes. Please do not modify any other response prompts.</font> </i><br><p> Action:<a id='lnkApprove' style='text-decoration: none;' class=\"OraLink\" href=#/\"mailto:" + objEmail.EmailFrom + "?subject=" + SubjectApp + " &amp;body=Action:%20%27Approve%27%0D%0A%0D%0AManager%20Comments:%20%27%27%0D%0A%0D%0A%0D%0A%0D%0AAPID " + PermissionID + "%0D%0A%0D%0AManagerID " + ManagerID + "%0D%0A%0D%0ANotificationId " + NotificationID + "\"><font size=\"&#45;1\"><b><input type=\"submit\" value=\"Approve\"></b></font></a><a id='lnkReject' style='text-decoration: none;' class=\"OraLink\" href=#/\"mailto:" + objEmail.EmailFrom + "?subject=" + SubjectApp + "&amp;body=Action:%20%27Reject%27%0D%0A%0D%0AManager%20Comments:%20%27%27%0D%0A%0D%0A%0D%0A%0D%0AAPID " + PermissionID + "%0D%0A%0D%0AManagerID " + ManagerID + "%0D%0A%0D%0ANotificationId " + NotificationID + "\">&nbsp;&nbsp;&nbsp;&nbsp;<font size=\"2\"><b><input type=\"submit\" value=\"Reject\"></b></font></a></p>\""; 

然後我加入這個字符串的郵件正文和發送電子郵件,它不能在體內僅適用於iPhone的前景出現,我試圖添加ID,目標,#,#/ ...沒有任何工作...

+0

您未能發佈您的代碼。如果沒有'',確定代碼無法正常工作的確實很難。 – gwally

+1

@誠摯地感謝您...請將其添加爲答案 –

回答

0

對於每個<a href="#linkname">linkname</a>

您需要對應的<a name="linkname"></a>才能鏈接到您的代碼中。

祝你好運。