如何避免mailto烦恼?

时间:2022-11-15 21:53:38

I am working on a website and would like for my users to be able to give feedback as easily as possible. I know one way but I've always hated it:

我正在一个网站上工作,希望我的用户能够尽可能轻松地提供反馈。我知道一种方式,但我一直很讨厌它:

<a href="mailto:someone@somewhere.com">Click Here to be annoyed!</a>

Is there a way in JavaScript or HTML to allow my users to email me without having to go through a lot of trouble?

有没有办法在JavaScript或HTML中允许我的用户给我发电子邮件而不必经历很多麻烦?

6 个解决方案

#1


A CONTACT FORM:

联系表格:

  • avoids spam bots that pick up 'mailtos'
  • 避免垃圾邮件机器人拿起'mailtos'

  • allows you to validate that the form user is 'human' (optional captcha)
  • 允许您验证表单用户是否为“人”(可选验证码)

  • gives you total server-side control over data format
  • 为您提供服务器端对数据格式的全面控制

  • allows you to change your email easily from the server, anytime
  • 允许您随时轻松地从服务器更改电子邮件

  • hides your favorite, real email from your visitors/members/site users
  • 隐藏来自访问者/会员/网站用户的最喜欢的真实电子邮件

  • gives you the option to control the topic (via select menu, etc.)
  • 为您提供控制主题的选项(通过选择菜单等)

  • gives you an opportunity to have the user check off something extra
    • e.g., a survey question, subscription opt-in, interest in services, quote, etc.
    • 例如,调查问题,订阅选择,服务兴趣,报价等。

  • 让您有机会让用户检查一些额外的东西,例如调查问题,订阅选择,服务兴趣,报价等。

  • gives you an opportunity to return a thank you (or sales page) after submission
  • 让您有机会在提交后返回感谢(或销售页面)

  • gives you another opportunity to look professional
  • 给你另一个看起来很专业的机会

There's no question the link is the easiest initially-- a simple click; but, all things considered, I whole-heartedly agree that a contact form is the way to go for most purposes, for the reasons I listed above, and more.

毫无疑问,链接最初是最简单的 - 只需点击一下;但是,考虑到所有事情,我全心全意地同意联系表格是大多数目的,因为我上面列出的原因,等等。


Well, since Tom challenged me, ;) Here are a few copy-and-paste contact widgets that you can have up and tested in a minute or so.

好吧,既然汤姆挑战了我,;)以下是一些复制粘贴的联系小部件,你可以在一分钟左右的时间内完成并测试。

Some Customizable Flash Contact/MailTo Widgets:

一些可自定义的Flash Contact / MailTo小部件:

  • http://www.widgetbox.com/widget/contactify-widget-beta A customizable contact form. The style is highly customizable.

    http://www.widgetbox.com/widget/contactify-widget-beta可自定义的联系表单。风格高度可定制。

  • http://www.widgetbox.com/widget/contact-emailer-version3-rajwidgetbox Use this gadget in your web site's contact page. Avoid spams by not providing your email address in your site or blog. This gadget is highly customizable. This uses image verification code feature. Multiple languages are supported. Version 3. 3300 downloads

    http://www.widgetbox.com/widget/contact-emailer-version3-rajwidgetbox在您网站的联系页面中使用此小工具。不通过在您的网站或博客中提供您的电子邮件地址来避免垃圾邮件。此小工具可高度自定义。这使用图像验证码功能。支持多种语言。版本3. 3300次下载

  • http://www.widgetbox.com/widget/ultimate-antispam-email-link Now, if you really do not want a form, but do want an email link that spam bots cannot pick up, here's the widge for you. In the custom area, you define your parties and mailto addresses. It's a simple flash button, so the user doesn't see it until it opens their mail client.

    http://www.widgetbox.com/widget/ultimate-antispam-email-link现在,如果你真的不想要一个表单,但确实想要一个垃圾邮件机器人无法接收的电子邮件链接,这里有适合你的widge。在自定义区域中,您可以定义各方和mailto地址。这是一个简单的Flash按钮,因此用户在打开邮件客户端之前不会看到它。

#2


The way you describe is the easiest way in my opinion.

在我看来,你描述的方式是最简单的方法。

If you want the email typed up there in the page like a form, you might want to create an email/suggestion form or alternative.

如果您希望在页面中输入的电子邮件类似于表单,则可能需要创建电子邮件/建议表单或替代方法。

#3


You can provide a multiline text box for comments and a submit button, POST the text to your server, and then mail it to yourself on the server. That spares your users a trip to their mail clients, at the cost of depriving you of a reasonably-likely-valid reply-to address.

您可以提供注释的多行文本框和提交按钮,将文本POST到您的服务器,然后在服务器上将其邮寄给您自己。这会让您的用户无法访问他们的邮件客户端,但代价是剥夺了您合理可能有效的回复地址。

You could even use AJAX and spare them a screen refresh.

您甚至可以使用AJAX并为它们提供屏幕刷新。

#4


Google Docs supplies creating webforms that can be easily embedded in websites. It collects all data in an on-line spreadsheet which you can download at anytime in various formats. You can even set e-mail notification if a visitor filled out your contact form.

Google文档提供了可轻松嵌入网站的网络表单。它可以在在线电子表格中收集所有数据,您可以随时以各种格式下载这些数据。如果访问者填写了您的联系表单,您甚至可以设置电子邮件通知。

#5


I would create a form that users can provide feedback in, and then have your server write this into a database. Writing to a DB is likely going to make it more efficient for you to wade through feedback. Having users fill a form instead of sending you free-form email also help you enforce some kind of structure on the feedback or the metadata associated with the feedback (bug/feature request/comments, etc).

我将创建一个用户可以提供反馈的表单,然后让您的服务器将其写入数据库。写入数据库可能会使您更有效地通过反馈。让用户填写表单而不是向您发送*格式的电子邮件也可以帮助您在反馈或与反馈相关联的元数据(错误/功能请求/评论等)上强制执行某种结构。

#6


The most reliable way would be to send the email with the help of some server side processing.

最可靠的方法是在某些服务器端处理的帮助下发送电子邮件。

You can also do it using an HTML form with the help of the action attribute:

您还可以在action属性的帮助下使用HTML表单执行此操作:

<form action="mailto:user@example.com">
...
</form>

But this method may not be reliable for all browsers.

但是这种方法对于所有浏览器可能都不可靠。

#1


A CONTACT FORM:

联系表格:

  • avoids spam bots that pick up 'mailtos'
  • 避免垃圾邮件机器人拿起'mailtos'

  • allows you to validate that the form user is 'human' (optional captcha)
  • 允许您验证表单用户是否为“人”(可选验证码)

  • gives you total server-side control over data format
  • 为您提供服务器端对数据格式的全面控制

  • allows you to change your email easily from the server, anytime
  • 允许您随时轻松地从服务器更改电子邮件

  • hides your favorite, real email from your visitors/members/site users
  • 隐藏来自访问者/会员/网站用户的最喜欢的真实电子邮件

  • gives you the option to control the topic (via select menu, etc.)
  • 为您提供控制主题的选项(通过选择菜单等)

  • gives you an opportunity to have the user check off something extra
    • e.g., a survey question, subscription opt-in, interest in services, quote, etc.
    • 例如,调查问题,订阅选择,服务兴趣,报价等。

  • 让您有机会让用户检查一些额外的东西,例如调查问题,订阅选择,服务兴趣,报价等。

  • gives you an opportunity to return a thank you (or sales page) after submission
  • 让您有机会在提交后返回感谢(或销售页面)

  • gives you another opportunity to look professional
  • 给你另一个看起来很专业的机会

There's no question the link is the easiest initially-- a simple click; but, all things considered, I whole-heartedly agree that a contact form is the way to go for most purposes, for the reasons I listed above, and more.

毫无疑问,链接最初是最简单的 - 只需点击一下;但是,考虑到所有事情,我全心全意地同意联系表格是大多数目的,因为我上面列出的原因,等等。


Well, since Tom challenged me, ;) Here are a few copy-and-paste contact widgets that you can have up and tested in a minute or so.

好吧,既然汤姆挑战了我,;)以下是一些复制粘贴的联系小部件,你可以在一分钟左右的时间内完成并测试。

Some Customizable Flash Contact/MailTo Widgets:

一些可自定义的Flash Contact / MailTo小部件:

  • http://www.widgetbox.com/widget/contactify-widget-beta A customizable contact form. The style is highly customizable.

    http://www.widgetbox.com/widget/contactify-widget-beta可自定义的联系表单。风格高度可定制。

  • http://www.widgetbox.com/widget/contact-emailer-version3-rajwidgetbox Use this gadget in your web site's contact page. Avoid spams by not providing your email address in your site or blog. This gadget is highly customizable. This uses image verification code feature. Multiple languages are supported. Version 3. 3300 downloads

    http://www.widgetbox.com/widget/contact-emailer-version3-rajwidgetbox在您网站的联系页面中使用此小工具。不通过在您的网站或博客中提供您的电子邮件地址来避免垃圾邮件。此小工具可高度自定义。这使用图像验证码功能。支持多种语言。版本3. 3300次下载

  • http://www.widgetbox.com/widget/ultimate-antispam-email-link Now, if you really do not want a form, but do want an email link that spam bots cannot pick up, here's the widge for you. In the custom area, you define your parties and mailto addresses. It's a simple flash button, so the user doesn't see it until it opens their mail client.

    http://www.widgetbox.com/widget/ultimate-antispam-email-link现在,如果你真的不想要一个表单,但确实想要一个垃圾邮件机器人无法接收的电子邮件链接,这里有适合你的widge。在自定义区域中,您可以定义各方和mailto地址。这是一个简单的Flash按钮,因此用户在打开邮件客户端之前不会看到它。

#2


The way you describe is the easiest way in my opinion.

在我看来,你描述的方式是最简单的方法。

If you want the email typed up there in the page like a form, you might want to create an email/suggestion form or alternative.

如果您希望在页面中输入的电子邮件类似于表单,则可能需要创建电子邮件/建议表单或替代方法。

#3


You can provide a multiline text box for comments and a submit button, POST the text to your server, and then mail it to yourself on the server. That spares your users a trip to their mail clients, at the cost of depriving you of a reasonably-likely-valid reply-to address.

您可以提供注释的多行文本框和提交按钮,将文本POST到您的服务器,然后在服务器上将其邮寄给您自己。这会让您的用户无法访问他们的邮件客户端,但代价是剥夺了您合理可能有效的回复地址。

You could even use AJAX and spare them a screen refresh.

您甚至可以使用AJAX并为它们提供屏幕刷新。

#4


Google Docs supplies creating webforms that can be easily embedded in websites. It collects all data in an on-line spreadsheet which you can download at anytime in various formats. You can even set e-mail notification if a visitor filled out your contact form.

Google文档提供了可轻松嵌入网站的网络表单。它可以在在线电子表格中收集所有数据,您可以随时以各种格式下载这些数据。如果访问者填写了您的联系表单,您甚至可以设置电子邮件通知。

#5


I would create a form that users can provide feedback in, and then have your server write this into a database. Writing to a DB is likely going to make it more efficient for you to wade through feedback. Having users fill a form instead of sending you free-form email also help you enforce some kind of structure on the feedback or the metadata associated with the feedback (bug/feature request/comments, etc).

我将创建一个用户可以提供反馈的表单,然后让您的服务器将其写入数据库。写入数据库可能会使您更有效地通过反馈。让用户填写表单而不是向您发送*格式的电子邮件也可以帮助您在反馈或与反馈相关联的元数据(错误/功能请求/评论等)上强制执行某种结构。

#6


The most reliable way would be to send the email with the help of some server side processing.

最可靠的方法是在某些服务器端处理的帮助下发送电子邮件。

You can also do it using an HTML form with the help of the action attribute:

您还可以在action属性的帮助下使用HTML表单执行此操作:

<form action="mailto:user@example.com">
...
</form>

But this method may not be reliable for all browsers.

但是这种方法对于所有浏览器可能都不可靠。