Was sind mail to links
A popular topic!
"Mailto links" are a type of hyperlink that, when clicked, automatically opens the user's default email client or application with a pre-filled email message. The link is typically in the format:
mailto:[email protected]?subject=Subject&body=Body
Here's a breakdown of the components:
mailto
: This is the protocol used to open the email client.[email protected]
: This is the recipient's email address.?subject=Subject
: This is an optional parameter that sets the subject line of the email.&body=Body
: This is an optional parameter that sets the body text of the email.
When a user clicks on a mailto link, their default email client or application will open with the pre-filled email message. The user can then modify the message as needed before sending it.
Mailto links are commonly used in web pages, emails, and other digital content to provide a convenient way for users to send emails to specific recipients or addresses.
For example, if you have a contact form on your website, you might use a mailto link to allow users to send an email to your contact address:
<a href="mailto:[email protected]?subject=Contact%20Form%20Enquiry&body=Hello%20from%20the%20contact%20form!">Send an email</a>
When a user clicks on this link, their default email client will open with a pre-filled email message addressed to [email protected]
with the subject line "Contact Form Enquiry" and the body text "Hello from the contact form!".