添加“通过电子邮件分享”链接到网站

时间:2022-10-22 09:07:55

I have an HMTL / CSS website built in Dreamweaver CS4 and I would like to add a 'share by email' link to the site (so that anyone who clicks on it can easily send a link to the site to their chosen recipient). I would like one of those envelope icons, but preferably customisable in size so it would fit nicely with other icons I have.

我有一个在Dreamweaver CS4中构建的HMTL / CSS网站,我想在网站上添加一个“通过电子邮件分享”链接(这样任何点击它的人都可以轻松地将链接发送到他们选择的收件人)。我想要一个这样的信封图标,但最好是可以自定义尺寸,这样它就能很好地适应我的其他图标。

Please could someone kindly advise me as to what is the easiest way of doing this - I am a beginner. Thanks in advance.

请有人可以告诉我最简单的方法是什么 - 我是初学者。提前致谢。

3 个解决方案

#1


142  

Something like this might be the easiest way.

这样的事情可能是最简单的方法。

<a href="mailto:?subject=I wanted you to see this site&amp;body=Check out this site http://www.website.com."
   title="Share by Email">
  <img src="http://png-2.findicons.com/files/icons/573/must_have/48/mail.png">
</a>

You could find another email image and add that if you wanted.

您可以找到另一个电子邮件图像,并根据需要添加。

#2


4  

Easiest: http://www.addthis.com/

最简单:http://www.addthis.com/

Best? Well. probably not, But If you don't want to design something bespoke this is the best there is...

最好?好。可能不是,但如果你不想设计定制的东西,这是最好的......

#3


-9  

<a target="_blank" title="Share this page" href="http://www.sharethis.com/share?url=[INSERT URL]&title=[INSERT TITLE]&summary=[INSERT SUMMARY]&img=[INSERT IMAGE URL]&pageInfo=%7B%22hostname%22%3A%22[INSERT DOMAIN NAME]%22%2C%22publisher%22%3A%22[INSERT PUBLISHERID]%22%7D"><img width="86" height="25" alt="Share this page" src="http://w.sharethis.com/images/share-classic.gif"></a>

Instructions

说明

First, insert these lines wherever you want within your newsletter code. Then:

首先,在您的简报代码中的任何位置插入这些行。然后:

  1. Change "INSERT URL" to whatever website holds the shared content.
  2. 将“INSERT URL”更改为包含共享内容的任何网站。
  3. Change "INSERT TITLE" to the title of the article.
  4. 将“INSERT TITLE”更改为文章标题。
  5. Change "INSERT SUMMARY" to a short summary of the article.
  6. 将“INSERT SUMMARY”更改为文章的简短摘要。
  7. Change "INSERT IMAGE URL" to an image that will be shared with the rest of the content.
  8. 将“INSERT IMAGE URL”更改为将与其余内容共享的图像。
  9. Change "INSERT DOMAIN NAME" to your domain name.
  10. 将“INSERT DOMAIN NAME”更改为您的域名。
  11. Change "INSERT PUBLISHERID" to your publisher ID (if you have an account, if not, remove "[INSERT PUBLISHERID]" or sign up!)
  12. 将“INSERT PUBLISHERID”更改为您的发布商ID(如果您有帐户,如果没有,请删除“[INSERT PUBLISHERID]”或注册!)

If you are using this on an email newsletter, make sure you add our sharing buttons to the destination page. This will ensure that you get complete sharing analytics for your page. Make sure you replace "INSERT PUBLISHERID" with your own.

如果您在电子邮件简报中使用此功能,请确保将我们的共享按钮添加到目标页面。这将确保您获得完整的页面共享分析。确保将“INSERT PUBLISHERID”替换为您自己的“INSERT PUBLISHERID”。

#1


142  

Something like this might be the easiest way.

这样的事情可能是最简单的方法。

<a href="mailto:?subject=I wanted you to see this site&amp;body=Check out this site http://www.website.com."
   title="Share by Email">
  <img src="http://png-2.findicons.com/files/icons/573/must_have/48/mail.png">
</a>

You could find another email image and add that if you wanted.

您可以找到另一个电子邮件图像,并根据需要添加。

#2


4  

Easiest: http://www.addthis.com/

最简单:http://www.addthis.com/

Best? Well. probably not, But If you don't want to design something bespoke this is the best there is...

最好?好。可能不是,但如果你不想设计定制的东西,这是最好的......

#3


-9  

<a target="_blank" title="Share this page" href="http://www.sharethis.com/share?url=[INSERT URL]&title=[INSERT TITLE]&summary=[INSERT SUMMARY]&img=[INSERT IMAGE URL]&pageInfo=%7B%22hostname%22%3A%22[INSERT DOMAIN NAME]%22%2C%22publisher%22%3A%22[INSERT PUBLISHERID]%22%7D"><img width="86" height="25" alt="Share this page" src="http://w.sharethis.com/images/share-classic.gif"></a>

Instructions

说明

First, insert these lines wherever you want within your newsletter code. Then:

首先,在您的简报代码中的任何位置插入这些行。然后:

  1. Change "INSERT URL" to whatever website holds the shared content.
  2. 将“INSERT URL”更改为包含共享内容的任何网站。
  3. Change "INSERT TITLE" to the title of the article.
  4. 将“INSERT TITLE”更改为文章标题。
  5. Change "INSERT SUMMARY" to a short summary of the article.
  6. 将“INSERT SUMMARY”更改为文章的简短摘要。
  7. Change "INSERT IMAGE URL" to an image that will be shared with the rest of the content.
  8. 将“INSERT IMAGE URL”更改为将与其余内容共享的图像。
  9. Change "INSERT DOMAIN NAME" to your domain name.
  10. 将“INSERT DOMAIN NAME”更改为您的域名。
  11. Change "INSERT PUBLISHERID" to your publisher ID (if you have an account, if not, remove "[INSERT PUBLISHERID]" or sign up!)
  12. 将“INSERT PUBLISHERID”更改为您的发布商ID(如果您有帐户,如果没有,请删除“[INSERT PUBLISHERID]”或注册!)

If you are using this on an email newsletter, make sure you add our sharing buttons to the destination page. This will ensure that you get complete sharing analytics for your page. Make sure you replace "INSERT PUBLISHERID" with your own.

如果您在电子邮件简报中使用此功能,请确保将我们的共享按钮添加到目标页面。这将确保您获得完整的页面共享分析。确保将“INSERT PUBLISHERID”替换为您自己的“INSERT PUBLISHERID”。