通过电子邮件发送默认客户端 [英] Emailing with default client

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

问题描述

(使用VB.NET 2005)


我正在编写一个桌面应用程序,我希望能够将电子邮件文件发送给b
。我已经设置了SMTP部分,现在我想要一个

MAPI选项。


我找到了一个MAPI教程,但它确实有一个比我想要的更多。什么

我想这样做:


1.打开默认邮件客户端的撰写窗口。

2.添加附件


然后用户可以填写收件人:主题:等等。


任何人都可以帮我这个吗?


谢谢,

Dustin

(using VB.NET 2005)

I''m writing a desktop application that I would like to have the ability
to email files. I''ve set up the SMTP portion, now I would like to have a
MAPI option.

I found a MAPI tutorial, but it does a bit more than I want it to. What
I would like to do is this:

1. Open the default mail client''s compose window.
2. Add an attachment

Then the user can fill out the To: Subject: etc.

Can anyone help me with this?

Thanks,
Dustin

推荐答案

Dustin,


你的问题在于这句话
Dustin,

Your problem is in this sentence
2.添加附件




并非所有的电子邮件客户都有添加附件的可能性。打开默认电子邮件客户端的标准代码中也没有




这个问题在这个新闻组中完成了数千次。如果你知道它可以是Office Outlook而不是可能性,而且我已经从Carlos中读到

,它也可以在OutlookExpress中读取,但不能直接从盒子里拿出来。 br />

Cor



Not all emailclients have the possiblitity to add attachments. It is as well
not in the standard code for opening default email clients.

This question is thousand times done in this newsgroup. If you know that it
is Office Outlook than there are possibilites and I have read from Carlos
that it can as well at OutlookExpress, but not right from the box.

Cor


嗨Dustin,


看看这里有什么:


如何发送带附件的电子邮件?
http://systemwebmail.com/faq/2.3.aspx


-


祝你好运,


Carlos J. Quintero


MZ-Tools:Visual Studio的生产力加载项

您可以编码,设计和文档更快:
http://www.mztools.com


" Dustin Davis" <杜********** @ gmail.com> escribióenel mensaje

news:Ou ************** @ TK2MSFTNGP04.phx.gbl ...
Hi Dustin,

See if there is something here:

How do I send an email with attachments?
http://systemwebmail.com/faq/2.3.aspx

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com

"Dustin Davis" <du**********@gmail.com> escribió en el mensaje
news:Ou**************@TK2MSFTNGP04.phx.gbl...
(使用VB。 NET 2005)

我正在编写一个桌面应用程序,我希望能够通过电子邮件发送文件。我已经设置了SMTP部分,现在我想要一个MAPI
选项。

我找到了一个MAPI教程,但它确实比我想要的要多一些。我想做的是:

1.打开默认邮件客户端的撰写窗口。
2.添加附件
然后用户可以填写To:Subject:等

任何人都可以帮我这个吗?

谢谢,
Dustin
(using VB.NET 2005)

I''m writing a desktop application that I would like to have the ability to
email files. I''ve set up the SMTP portion, now I would like to have a MAPI
option.

I found a MAPI tutorial, but it does a bit more than I want it to. What I
would like to do is this:

1. Open the default mail client''s compose window.
2. Add an attachment

Then the user can fill out the To: Subject: etc.

Can anyone help me with this?

Thanks,
Dustin



Carlos,


即systemwebmail。以这种方式打开默认客户端。

\\\

///对System.Web的引用

// / using System.Web;

///使用System.Diagnostic

Process.Start(" mailto:" + HttpUtility.UrlEncode(" No ***) *********@planet.nl")

+"?subject =这有助于+& body =你好吗?"); < br $>
///


Cor


" Carlos J. Quintero [VB MVP]" < CA ***** @ NOSPAMsogecable.com> schreef在

bericht新闻:eA ************** @ TK2MSFTNGP05.phx.gbl ...
Carlos,

That is systemwebmail. A default client is opened in this way.
\\\
///a reference to System.Web
///using System.Web;
///using System.Diagnostic
Process.Start ("mailto:" + HttpUtility.UrlEncode("No************@planet.nl")
+ "?subject=Does this helps" + "&body=How do you do?");
///

Cor

"Carlos J. Quintero [VB MVP]" <ca*****@NOSPAMsogecable.com> schreef in
bericht news:eA**************@TK2MSFTNGP05.phx.gbl...
嗨Dustin,

看看这里有什么东西:

如何发送带附件的电子邮件?
http://systemwebmail.com/faq/2.3.aspx

-

最好的问候,

Carlos J. Quintero

MZ-Tools:Visual Studio的生产力插件
您可以更快地编写代码,设计和记录:
http://www.mztools.com

"达斯汀戴维斯 <杜********** @ gmail.com> escribióenel mensaje
新闻:Ou ************** @ TK2MSFTNGP04.phx.gbl ...
Hi Dustin,

See if there is something here:

How do I send an email with attachments?
http://systemwebmail.com/faq/2.3.aspx

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com

"Dustin Davis" <du**********@gmail.com> escribió en el mensaje
news:Ou**************@TK2MSFTNGP04.phx.gbl...
(使用VB.NET 2005)

我正在编写一个桌面应用程序,我希望能够通过电子邮件发送文件。我已经设置了SMTP部分,现在我想要一个
MAPI选项。

我找到了一个MAPI教程,但它确实比我想要的要多一些。我想做的是:

1.打开默认邮件客户端的撰写窗口。
2.添加附件
然后用户可以填写To:Subject:等

任何人都可以帮我这个吗?

谢谢,
Dustin
(using VB.NET 2005)

I''m writing a desktop application that I would like to have the ability
to email files. I''ve set up the SMTP portion, now I would like to have a
MAPI option.

I found a MAPI tutorial, but it does a bit more than I want it to. What I
would like to do is this:

1. Open the default mail client''s compose window.
2. Add an attachment

Then the user can fill out the To: Subject: etc.

Can anyone help me with this?

Thanks,
Dustin




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

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