通过电子邮件发送供稿 [英] sending feed via email

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

问题描述

大家好.
我正在为Windows Mobile 7开发应用程序.
我需要通过电子邮件将应用程序中的某些信息发送给某些用户.
我为此使用"EmailComposeTask()".但是我收到错误消息电子邮件无法发送.请确保您已设置帐户"

如何在Windows7模拟器中设置电子邮件帐户.
谁能帮我?

以下代码我正在使用...

Hello everyone.
I am working on an application for windows mobile 7.
I need to send some information from my application to some user via email.
I am using "EmailComposeTask()" for this. But i am getting error "email cant send. make sure u have setup an accout"

How to setup an email account in windows7 emulator.
Can anyone help me?

Following code i am using ...

emailComposeTask = new EmailComposeTask();
            emailComposeTask.Body = textBox1.Text;
            emailComposeTask.To = textBox2.Text;
            emailComposeTask.From=TextBox3.Text;
            emailComposeTask.Show();




谢谢




Thanks

推荐答案

如果紧急的话,为什么不尝试使用google?
Google搜索发送电子邮件c# " [ ^ ]
If it was that urgent, why did you not try google?
Google search "send email c#"[^]


如错误提示所示,请确保您的Outlook服务器已安装并正在运行.
As the error suggests, make sure your outlook server is setup and running.


可能是由于各种原因.您需要一一看待它们.
港口开放吗?防火墙权限到位了吗?
进一步确保已在Web.Config中配置SMTP配置:
It can be because of various reasons. You need to look at them one by one.
Is the port open? Firewall permissions in place?
Further make sure you have configured SMTP configuration in Web.Config:
<system.net>
   <mailSettings>
     <smtp from="abc@somedomain.com">
       <network host="somesmtpserver" port="25" userName="name" password="pass" defaultCredentials="true" />
     </smtp>
   </mailSettings>
</system.net>


如果需要,请查看此Microsoft Video教程:
使用ASP.NET发送来自网站的电子邮件 [


If needed, have a look at this Microsoft Video tutorial:
Use ASP.NET to send Email from Website[^]
If needed, there are lots of article on this very site on how to send emails


这篇关于通过电子邮件发送供稿的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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