Comments on: Mailto Links https://css-tricks.com Tips, Tricks, and Techniques on using Cascading Style Sheets. Fri, 28 Jan 2022 14:16:52 +0000 hourly 1 https://wordpress.org/?v=6.4.3 By: Jake Jakubowski https://css-tricks.com/snippets/html/mailto-links/#comment-1788842 Fri, 28 Jan 2022 14:16:52 +0000 http://css-tricks.com/?page_id=5732#comment-1788842 In reply to OldGuy.

2022 and I still use mailto: I actually get way more spam with a contact form (even with honeypot). Thanks for this!

]]>
By: Geoff Graham https://css-tricks.com/snippets/html/mailto-links/#comment-1773712 Wed, 09 Jun 2021 16:46:35 +0000 http://css-tricks.com/?page_id=5732#comment-1773712 In reply to TechStudent11.

Hey there! CodePen blocks the action, so you’ll need to use the demo in another window over here.

]]>
By: TechStudent11 https://css-tricks.com/snippets/html/mailto-links/#comment-1773701 Wed, 09 Jun 2021 14:08:27 +0000 http://css-tricks.com/?page_id=5732#comment-1773701 the demo doesn’t work…

]]>
By: Vikas https://css-tricks.com/snippets/html/mailto-links/#comment-1772093 Sat, 15 May 2021 08:30:35 +0000 http://css-tricks.com/?page_id=5732#comment-1772093 Thanks, is it possible to create links inside the body of mailto href?

]]>
By: Simon https://css-tricks.com/snippets/html/mailto-links/#comment-1767637 Tue, 26 Jan 2021 11:11:39 +0000 http://css-tricks.com/?page_id=5732#comment-1767637 Should a title property be set on mailto links? I’ve never assigned one in the past but we are getting challenged on this following the introduction of accessibility legislation. We include the title property in all other links.

]]>
By: Geoff Graham https://css-tricks.com/snippets/html/mailto-links/#comment-1765564 Tue, 01 Dec 2020 16:06:40 +0000 http://css-tricks.com/?page_id=5732#comment-1765564 In reply to tzipora.

Is there a specific one that isn’t working? Just added a demo at the end so you can click the examples to see how they work.

]]>
By: tzipora https://css-tricks.com/snippets/html/mailto-links/#comment-1765555 Tue, 01 Dec 2020 14:29:11 +0000 http://css-tricks.com/?page_id=5732#comment-1765555 wanted to understand how the Mailto works?
I copied the link that you showed and it did not work for me
thanks

]]>
By: Geoff Graham https://css-tricks.com/snippets/html/mailto-links/#comment-1763986 Mon, 12 Oct 2020 16:35:32 +0000 http://css-tricks.com/?page_id=5732#comment-1763986 In reply to Neo Spore.

Hey Neo, there sure is! Telephone links are a lot like email links, but prepend the phone number with tel: instead of mailto:

<a href="tel:1-555-555-5555">Call now!</a>

Here’s a deeper post on how telephone links work.

]]>
By: Neo Spore https://css-tricks.com/snippets/html/mailto-links/#comment-1763985 Mon, 12 Oct 2020 14:58:30 +0000 http://css-tricks.com/?page_id=5732#comment-1763985 is there a code for call a number similar like this ?
I want to add this code toa button in elementor

]]>
By: Mike Simpson https://css-tricks.com/snippets/html/mailto-links/#comment-1762257 Tue, 01 Sep 2020 21:02:57 +0000 http://css-tricks.com/?page_id=5732#comment-1762257 Excellent. Just used this on our site – with both subject and body section populated. Should help with conversions!

Cheers
Mike

]]>
By: Akanksha Gaur https://css-tricks.com/snippets/html/mailto-links/#comment-1762251 Tue, 01 Sep 2020 17:17:42 +0000 http://css-tricks.com/?page_id=5732#comment-1762251 Hey Can we format the text in the body. Is it possible ?

]]>
By: ashish https://css-tricks.com/snippets/html/mailto-links/#comment-1761958 Tue, 25 Aug 2020 10:21:40 +0000 http://css-tricks.com/?page_id=5732#comment-1761958 Can we send html with body like &body=

content here!

I have set it is not parsing inside gmail, only plain text are sending.

]]>
By: Matteo Manzinello https://css-tricks.com/snippets/html/mailto-links/#comment-1760584 Sat, 25 Jul 2020 11:58:44 +0000 http://css-tricks.com/?page_id=5732#comment-1760584 I’m working on an open source library to handle the mailto and tel links! It’s called mailgo https://mailgo.dev. The library substitute the classic behaviour that links with a modal with more possibilities for the users, maybe it can be useful for someone!

]]>
By: Mr Alexander https://css-tricks.com/snippets/html/mailto-links/#comment-1717398 Mon, 10 Jun 2019 20:31:51 +0000 http://css-tricks.com/?page_id=5732#comment-1717398 What about the option of not specifying the email address and letting the user fill that?

You simply leave the email out,

mailto: – will open the email client
mailto:?subject=hello
mailto:?subject=hello&body=message

]]>
By: Webworker https://css-tricks.com/snippets/html/mailto-links/#comment-1653520 Thu, 29 Nov 2018 08:16:56 +0000 http://css-tricks.com/?page_id=5732#comment-1653520 In reply to kunjan raychura.

Awesome. Hope they’re are still compliant. Thank you for this.

]]>