2
我开发了一个使用cordova 3.1的移动应用程序。在android和IOS 7中,mailto链接完美地工作。但在iOS 5升级Cordova 3.0之后,它不工作。Mailto链接不工作在使用科尔多瓦的ios 5
<a href="mailto:[email protected]">Example</a>
它表示
失败,错误加载网页:URL可以不被显示。我错过了什么?
我开发了一个使用cordova 3.1的移动应用程序。在android和IOS 7中,mailto链接完美地工作。但在iOS 5升级Cordova 3.0之后,它不工作。Mailto链接不工作在使用科尔多瓦的ios 5
<a href="mailto:[email protected]">Example</a>
它表示
失败,错误加载网页:URL可以不被显示。我错过了什么?
请试试这个iOS设备上
$('.anchortag').on("click", function (e) {
var emailBody = "Body of Content";
var subject = "This is test Subject";
document.location.href = "mailto:[email protected]?subject=" + subject + "&body=" + emailBody;
});
OR
<div class="bottom-row">
<a href="#" id="submitForm" title="Submit Answers">Submit Answers</a>
</div>
<form id="mailtoForm" action="mailto:[email protected]" target="_blank">
<input type="hidden" name="Cc" value="">
<input type="hidden" name="Bcc" value="">
<input type="hidden" name="Subject" value="">
<input type="hidden" name="Body" value="">
<input type="submit" style="display:none">
</form>
$("#submitForm").on("click",function (e) {
var emailBody = "Body of Content";
var subject = "This is test Subject";
$("#mailtoForm").find("input[name=Subject]").val(subject);
$("#mailtoForm").find("input[name=Body]").val(emailBody);
$("#mailtoForm").submit();
});
我想这...但它不工作...当我同样的错误被显示出来点击..其他建议? – ConnectingCode
我有编辑和尝试这也是我的工作 –
这是工作在IOS 7 ...但不是在IOS 5 ...同样的错误 – ConnectingCode