3
<div id="mainDiv">
<div id="marca">
<img class="imagens" src="media/img/titulo.png" alt="Titulo">
</div>
<div id="anaMaria">
<img class="imagens" src="media/img/fundoCadastroDois.png" alt="FundoCadastroDois">
</div>
<div id="cadastro">
<p>....</p>
<form id="contatoForm" method="post" action="mailto:[email protected]">
<input class="cells" type="text" name="nome" placeholder="nome">
<input class="cells" type="text" email="email" placeholder="email">
<button type="submit" value="click" id="enviar"></button>
</form>
</div>
</div>
I implemented this code above, but once I do form Ubmit, it opens my own email and with the data filled as if I were sending a new email. What I want is for the user to fill with name and email in the fields and this data goes to my inbox. I looked for solutions but most use the same that I am doing or with href, which does not solve the problem. I know it’s simple but I need something simple to finish.
To send email you need an SMTP server. What language are you using?
– lionbtt
possible duplicate of How to send emails only with HTML5 basics
– bfavaretto
I think there is an error of interpretation in Guilherme’s question, it seems to me (by the code and content of the text), who wants to fill the email and not send it itself, so his form uses mails. Correct me if I’m wrong.
– Gabriel Gartz
It seems to me that he wants to send, but let’s wait for the author clarify (note: as I interpreted different, I rejected his editing suggestion, @Gabrielgartz).
– bfavaretto
@bfavaretto If you’re right I help you by clicking on the close and I save my answer to someone who has this question and it is useful.
– Gabriel Gartz
One thing is fact, regardless of which language you are using, is missing the
name
ininput
email...– Kenny Rafael
Guys, I really wasn’t clear on my question, what I want is for the user to fill in name and email in the fields and this data goes into my inbox. But from the answers some of you have given me, there’s no way to do this without a server.
– Guilherme Vianna
Thank you for clarifying, William. So it seems to me a duplicate.
– bfavaretto
@Gabrielgartz She’s a duplicate, but I wouldn’t exclude her answer.
– bfavaretto
@bfavaretto I did what I promised as soon as I read the boy’s comment. You were right, the misinterpretation was mine.
– Gabriel Gartz
I have doubts whether it really is a duplicate. It may be, it seems, but they both have interesting answers. Can they be merged? It is a good parameter to know if it is duplicate. Even if the merge is not done.
– Maniero
@bigown I believe they can be merged, considering the current answers. The only argument against considering duplicate is that the other question demands that nothing server-side is used, and that one is not (and using something server-site may be the answer the author is looking for here).
– bfavaretto
What language do you use? Java, ASP, PHP? Any framework with them like Struts or JSF (if Java is my line of knowledge)?
– Philippe Gioseffi
@Philippegioseffi will use Java with Struts.
– Guilherme Vianna