如何在Outlook中获取帐户名 [英] how to get account name in outlook

查看:185
本文介绍了如何在Outlook中获取帐户名的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我想在Windows Mobile应用程序中发送邮件,
我的代码是



I want to send mail in windows mobile application ,
my code is,

private void btnsubmit_Click(object sender, EventArgs e)
        {
            try
            {
                OutlookSession ol = new OutlookSession();
                EmailMessage em = new EmailMessage();
                em.To.Add(new Recipient("iyal", "iyalarasi.r@winxsolutions.com"));
                em.Subject = "Request For Leave";
                em.BodyText = txteno.Text + "request" + cb1.SelectedItem.ToString() + "leave for" + txtreason.Text;
               // EmailAccount ea = ol.EmailAccounts[0];
                em.Send("iyalarasi");//outlook Account Name
                MessagingApplication.Synchronize("iyalarasi");
                MessageBox.Show("mail sent");
                Form2 f2 = new Form2();
                f2.Show();
                f2.lblmsg.Text = "You have Applied Leave";
            }
            catch (PocketOutlookException ex)
            {
                lblmsg1.Text = ex.ToString();
            }
            catch (Exception e1)
            {
                lblmsg1.Text = e1.ToString();
            }
          }


显示错误的错误帐户名称,
我也在google上进行了检查.Outlook中的帐户名是用户名还是邮件中可见的名称?

请帮帮我.

需要尽快完成此任务.


It show error Incorrect Account name,
I checked with google also.What is Account name in Outlook it is username or name visible in mail?

Please help me.

Need to finish this task soon.

推荐答案

这是您帐户中显示的名称.

谢谢,
Prashant
It is the name display in your account.

Thanks,
Prashant


这篇关于如何在Outlook中获取帐户名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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