How can i code a HTML (using CSS) file to send an email to me(i.e. to given email-id) by the visitor of that website?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Without using a server-side language, the best you can really do is a
mailtolink. That will open the user’s default email editor with the “To” field populated with the value of yourmailtolink. You can create one of those like so:<a href="mailto:you@somewhere.com">Email Me!</a>It is possible to provide extra information in a
mailtolink, to populate more fields. For example, if you want to provide a subject:<a href="mailto:you@somewhere.com?subject=Subject">Email Me!</a>You can also provide a value for the
body,ccandbccbut I have no idea how well those default values are supported by various email clients.Also note that this has absolutely nothing whatsoever to do with CSS, which is used for styling documents. I’ve therefore removed the CSS tag from your question.