使用Titanium Developer应用程序发送电子邮件 [英] Sending Email Using Titanium Developer Application

查看:139
本文介绍了使用Titanium Developer应用程序发送电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在尝试创建一个用于从Titan开发人员应用程序发送电子邮件的应用程序

Hi,

I am trying to create an application for sending Email from titanium developer application

b.addEventListener(''click'', function() {
var emailDialog = Titanium.UI.createEmailDialog();
emailDialog.subject = "Hello from Titanium";
emailDialog.toRecipients = [''foo@yahoo.com''];
emailDialog.messageBody = ''Appcelerator Titanium Rocks!'';
emailDialog.open();

 });


当我单击发送时,它将打开一个弹出窗口,用于在撰写邮件后发送电子邮件.

它没有发送邮件.

请帮助

在此先感谢
Pratik Asthana


It opens a pop up window for sending email after composing mail when I click on send.

It is not sending mail.

Please Help

Thanks in Advance
Pratik Asthana

推荐答案

Pratik,我的代码在我端工作得很好,经过一些测试,您必须在发送设备上配置电子邮件客户端,并确保其发送能够从自己的电子邮件客户端发送邮件.此外,iPhone和Android模拟器不会发送电子邮件,您必须使用真实的设备.希望对您有所帮助!
Pratik, your code worked fine on my end, after some testing, you must have an email client configured on the device your sending from and make sure its able to send mail from its own email client. Also, the iPhone and android emulators will not email, you will have to use a real device. Hope this helps!


如果您想使用asp.net-2发送电子邮件.请访问下面的链接
< a href ="http://www.raiseitsolutions.com/forum/viewtopic.php?f=4&t=14"> http://www.raiseitsolutions.com/forum/viewtopic.php?f = 4& t = 14</a> [< a href ="http://www.raiseitsolutions.com/forum/viewtopic.php?f=4&t=14" target ="_ blank" title =新窗口> ^</a>],它的工作真的很棒,
if you want send email using asp.net-2. please visit the below link
<a href="http://www.raiseitsolutions.com/forum/viewtopic.php?f=4&t=14">http://www.raiseitsolutions.com/forum/viewtopic.php?f=4&t=14</a>[<a href="http://www.raiseitsolutions.com/forum/viewtopic.php?f=4&t=14" target="_blank" title="New Window">^</a>], its work really great,


这篇关于使用Titanium Developer应用程序发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆