本文介绍了如何在C#中通过WM7发送电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Windows Mobile 7开发的新手。可以告诉我如何通过WM7发送电子邮件。

I am new in windows mobile 7 development.Can same one tell me How to send email through WM7.

EmailComposeTask emailcomposer = new EmailComposeTask();

EmailComposeTask emailcomposer = new EmailComposeTask();

  emailcomposer.To =" mailto:[email protected]" ;;

 emailcomposer.To = "mailto:[email protected]";

  emailcomposer.Subject =" test";

  emailcomposer.Subject = "test";

  emailcomposer.Body ="这是一个测试邮件" ;;

  emailcomposer.Body = "This is a test mail";

  emailcomposer.Show();

  emailcomposer.Show();

错误消息

无法发送。确保您设置了帐户。

Cant' send . Make sure you'av set up an account.

 

请帮我解决如何设置帐户的问题。我正在使用模拟器。

Please help me how to set an account. i am using Emulator.

 

推荐答案

如果你正在使用Windows Phone 7那么你在一个错误的论坛,你可以在这里找到合适的论坛:  http://forums.create.msdn.com/forums/default.aspx?GroupID = 19

If you're working with Windows Phone 7 then you're in a wrong forum, you can find appropriate forum here: http://forums.create.msdn.com/forums/default.aspx?GroupID=19

无论如何,很明显你没有设置你的电子邮件帐户。您必须先设置它,然后再使用电子邮件。如何完成取决于您使用的Windows Mobile版本,例如在Messaging应用程序中。一旦你设置了它,不要忘记
保存模拟器的状态,否则你将不得不再次这样做。

In any case it's pretty clear you did not setup your email account. You must set it up before doing anything with email. How it's done depends on Windows Mobile version you're using, e.g. in Messaging application. Once you have it set up, don't forget to save emulator's state or you would have to do it again.


这篇关于如何在C#中通过WM7发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-30 01:25