Alternative to mailto: to link email

时间:2015-09-30 23:12:15

标签: html css email

I am creating a website and there is a page with people that are part of the company. Each person has an email that i want for the user to be able to get the email for the person that he/she want.

If we were in 2011 i would have used mailto: html tag. But really not so many people are using desktop email clients.

I thought about linking to a link so a new window would open in gmail and a new message would be created with recepient the pressed email. BUT not everyone uses gmail.

The only posible "solution" that i though that when the user clicks on the email this would be copied automatically in the clipboard. It would have the same result as doing CTRL & C at something. BUT this requires a lot of time and i dont want to get my hands dirty with javascript.

Is there any other way to do this ?

2 个答案:

答案 0 :(得分:1)

You should probably still use mailto:. mailto: is not intended for just desktops, it identifies a handler for the client. A mobile device would be able to recognize it just as well, and launch its preferred MTU.

答案 1 :(得分:0)

有许多插件,例如smartaddon contact formfoxyform,你可以将它们添加到你的html代码中。

但是,如果你可以使用php,它只需要几个代码语句就可以自己设置联系表单。请参阅this帖子,其中明确说明了如何使用php设置联系表单。