mailto还有更有效的替代方案吗? [英] Are there any more effective alternatives to mailto?

查看:139
本文介绍了mailto还有更有效的替代方案吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当只有基本参数需要发送时,例如To字段,mailto:命令非常有用,但是当大量的HTML时没有那么有用

格式化正文也必须发送。我基本上希望我的应用程序创建一个

全新邮件(在默认邮件客户端,通常是Outlook),然后用户可以修改和发送
。指定

" mailto:so ***** @ domain.com?body=XXX"是不够的,因为正文是

太长而且必须是HTML格式的。

-

詹姆斯。

The mailto: command is very useful when only basic parameters need to be
sent, such as the To field, but not so useful when a large chunk of HTML
formatted body text must also be sent. I basically want my app to to create a
full new mail message (in the default mail client, usually Outlook), which
the user can then modify and send. Specifying
"mailto:so*****@domain.com?body=XXX" will not suffice, as the body text is
too long and must be HTML formatted.
--
James.

推荐答案

hi,

当只需要发送基本参数时,mailto:命令非常有用,例如To字段,但是当还必须发送大量HTML
格式化正文时,这种情况不太有用。我基本上希望我的应用程序创建一个全新的邮件消息(在默认的邮件客户端,通常是Outlook),然后用户可以修改和发送。指定
mailto:so ***** @ domain.com?body=XXX"这是不够的,因为正文文本太长并且必须是HTML格式化的。
The mailto: command is very useful when only basic parameters need to be
sent, such as the To field, but not so useful when a large chunk of HTML
formatted body text must also be sent. I basically want my app to to create a
full new mail message (in the default mail client, usually Outlook), which
the user can then modify and send. Specifying
"mailto:so*****@domain.com?body=XXX" will not suffice, as the body text is
too long and must be HTML formatted.




你可以创建一个.eml文件并打开它。 />

crea



you could create an .eml file and open that.

crea


嗨James,


首先,我想确认一下我对你的问题的理解。从

您的描述中,我了解您需要在您的应用中创建HTML格式的电子邮件

消息。如果有任何误解,请随时告诉我




据我所知,我们可以使用System.Web.Mail下的类名称空间为

实现此目的。创建MailMessage对象将创建邮件消息。我们

也可以使用MailAttachment类添加特定消息的附件。


以下链接提供了一个示例:

http:// msdn。 microsoft.com/library/de...us/cpref/html/

frlrfsystemwebmailmailmessageclasstopic.asp

HTH。
< br $>
Kevin Yu

=======

此帖子已提供按原样没有保证,并且不授予

权利。

Hi James,

First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need to create an HTML format email
message in your app. If there is any misunderstanding, please feel free to
let me know.

As far as I know, we can use classes under System.Web.Mail namespace to
achieve this. Creating a MailMessage object will create a mail message. We
can also use MailAttachment class to add attachments to particular message.

The following link provides an example:

http://msdn.microsoft.com/library/de...us/cpref/html/
frlrfsystemwebmailmailmessageclasstopic.asp

HTH.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."


感谢您的建议。确实,我的目标是创建一个

HTML格式的电子邮件,但System.Web.Mail命名空间不合适。

Outlook是一个非常强大和有效的工具,并生成了

电子邮件,我希望用户能够在发送之前使用Outlook编辑它。此外,我无法制作SmtpMail.SendMessage(MailMessage消息)

方法工作 - 虽然这并不重要,因为它不是我想要的。

是否会创建.eml文件 - 如Crea-Ue。 Kirdar建议 - 可能是

,如果可以的话,这怎么做最容易?有替代方案吗?
Thanks for the advice. It is true that I am aiming to create an
HTML-formatted email, but the System.Web.Mail namespace is not suitable.
Outlook is a very powerful and effective tool, and having generated the
email, I would like the user to be able to edit it using Outlook before
sending. Also I can''t make the SmtpMail.SendMessage(MailMessage message)
method work - although this doesn''t really matter, as it''s not what I want.
Would the creation of an .eml file - as Crea-Ue. Kirdar suggested - be
possible, and if so, how is this most easily done? Is there an alternative?


这篇关于mailto还有更有效的替代方案吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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