4
I am creating a page, where you have the contact part, I have already made the form, etc., but at the time of sending, I can’t find a function to send to my email.
Could someone help?
<article id="contact">
<h2 class="major">Contato</h2>
<form method="post" action="#">
<div class="field half first">
<label for="name">Nome</label>
<input type="text" name="name" id="name" />
</div>
<div class="field half">
<label for="email">Email</label>
<input type="text" name="email" id="email" />
</div>
<div class="field">
<label for="message">Mensagem</label>
<textarea name="message" id="message" rows="4"></textarea>
</div>
<ul class="actions">
<li><input type="submit" value="Enviar mensagem" class="special" /></li>
<li><input type="reset" value="Apagar tudo" /></li>
</ul>
</form>
<ul class="icons">
<li><a href="#" class="icon fa-facebook"><span class="label">Facebook</span></a></li>
<li><a href="#" class="icon fa-whatsapp"><span class="label">Whatsapp</span></a></li>
</ul>
</article>
What’s the language, young man?
– Jéf Bueno
You won’t be able to do this only with HTML and Javascript. You need to use a server side language like ASP, PHP, C#, JSP,...
– Onaiggac
Would you have any solution with PHP? I’m studying PHP yet, let’s say I’m not yet able to develop it, even if it’s simple. But for this my code above, which PHP function would solve? Thanks!
– Lucas de Carvalho
Try using Phpmailer, it will make your job easier and it’s easy to set up, https://github.com/PHPMailer/PHPMailer
– Max Rogério
Could you give me an example in PHP with my code? Put is a little complicated with the topic that the boy went through. On my server, for example, I will have to create some folder?
– Lucas de Carvalho
Check this link http://blog.thiagobelem.net/enviar-e-mails-pelo-php-usando-o-phpmailer
– Eduardo Santos