Sending form without PHP

Asked

Viewed 133 times

-1

Good Afternoon I developed a site of Html5 and css3 and so now I have a "little problem" I have to make a form on this site with basic information like email phone name and subject and the message and this should be sent to my email when the staff send the form would like to know if there is a way to do this without using php

Follow my code with MAILTO:

<form id="main-contact-form" action="MAILTO:[email protected]" method="post" enctype="text/plain">
                <div class="row  wow fadeInUp" data-wow-duration="1000ms" data-wow-delay="300ms">
                  <div class="col-sm-6">
                    <div class="form-group">
                      <input type="text" name="name" class="form-control" placeholder="Nome" required="required">
                    </div>
                  </div>
                  <div class="col-sm-6">
                    <div class="form-group">
                      <input type="email" name="email" class="form-control" placeholder="Email" required="required">
                    </div>
                  </div>
                </div>
                <div class="form-group">
                  <input type="text" name="subject" class="form-control" placeholder="Assunto" required="required">
                </div>
                <div class="form-group">
                  <textarea name="message" id="message" class="form-control" rows="4" placeholder="Escreva sua Mensagem" required="required"></textarea>
                </div>                        
                <div class="form-group">
                  <button type="submit" class="btn-submit">Enviar</button>
                </div>
              </form>   

2 answers

1

I would like to point out that this is a stopgap measure because by using the "mailto:" command you will only be indicating to the browser/OS that you want to open something in case the email client.

But in many cases - like mine - the person does not own or does not use a configured email program so it becomes more complicated for the person to forward some message.

Not to mention that you can not metrify the user as for example browser he used, user IP and things like that (I know I’m thinking complex but it is possible).

Well if this form is not risky and etc. I would recommend using these free form forwarding services, where you copy the given URL and put in your form, just search in Goole.

  • Ideal then and use Phpmailer then is not

0


  • interesting friend see so and only I put my email in this case here :action="MAILTO:[email protected]" method="post" enctype="text/Plain" right after MAILTO: and ready ?

  • That’s right, just like that.

  • 1

    Raccoon I didn’t put fe sauhsauhsa more look I did here and it didn’t work I’ll post a snippet of my code there Take a look

  • Pronto esta la no post

Browser other questions tagged

You are not signed in. Login or sign up in order to post.