html button to send email
You can use mailto
, here is the HTML code:
<a href="mailto:EMAILADDRESS">
Replace EMAILADDRESS
with your email.
How do I code my submit button go to an email address
You might use Form
tag with action attribute to submit the mailto
.
Here is an example:
<form method="post" action="mailto:youremail@youremail.com" >
<input type="submit" value="Send Email" />
</form>
How to link a button to an email address
Just write
<a class="button" href="mailto:email@email.de">Kontakt</a>
Contact Form Submit Button link to Email
Sadly (vanilla) HTML+CSS doesn't provide possibility to send emails. Such an action can be achieved with PHP. HTML is just a markup language (it tells your browser where various elements are located), whereas CSS is styling language (it tells the browser how do the HTML-defined elements look like).
Your code opens your default e-mail client, because that's what mailto
action does.
Maybe this answer using PHP can be helpful for you in creating your form: https://stackoverflow.com/a/18382062/12631978
Related Topics
Mobile Safari 5Mb HTML5 Application Cache Limit
Nested Sticky Element with Zero Left Does Not Sticky
How to Restrict My Input Type="File" to Accept Only Png Image Files Not Working in Firefox
Multi-Coloured Circular Div Using Background Colours
Parallax Scrolling with CSS Only
Responsive Video Iframes (Keeping Aspect Ratio) with Only CSS
Ie Offsetting and Ignoring Height/Width of Anchor Focus Outlines
Why Can't I Use a Heading Tag Inside a P Tag and Style It with CSS
How to Vertical Align an Inline-Block in a Line of Text
Flex Child Is Growing Out of Parent
How to Style HTML5 <Meter> Tag
Vertical Align Text After Font Icon
Image Overlay on Responsive Sized Images Bootstrap
Making Buttons - <Button> or <Div>
Vertically-Aligned Inline-Block Element Not Perfectly Centered Within Container
How to Make Rounded Border in Ie8 with CSS
CSS Flexbox | Reordering Elements in Mobile
Grow Height of Parent Div That Contains Floating Nested Divs