Okay
  Public Ticket #1022882
mail.php and reservation.php
Closed

Comments

  •  2
    Bams started the conversation

    Hi. i'm beginner in html 5 / php,

    could you tell me how to set mail.php and reservation.php,

    so its could work properly when i launching my site.

    Regards,

    Bams

  •  850
    Jelly replied

    Hi,

    You can open two files:

    mail.php
    reservations.php
    

    Then you will see the place to write your email.

    Best Regards,
    Jelly Team

  •  2
    Bams replied

    Hi, here the mail.php ,  but it doesn't work

    <?php
    if(isset($_POST['email'])){
    $mailTo = "[email protected]";
    $subject = "mail from web";
    $body = "New message from web
    <br><br>
    FROM: ".$_POST['email']."<br>
    NAME: ".$_POST['name']."<br>
    COMMENTS: ".$_POST['message']."<br>";
    $headers = "To: Kopi Luwak <".$mailTo.">\r\n";
    $headers .= "From: ".$_POST['author']." <".$_POST['email'].">\r\n";
    $headers .= "Content-Type: text/html";
    //envio destinatario
    $mail_success =  mail($mailTo, utf8_decode($subject), utf8_decode($body), $headers);
    }

    what should i do ?

    so i have problem with the google map, when i am load from my computer the map is work well, but when i upload to the hosting it's won't work, and get this message : 

    " Oops! Something went wrong.

    This page didn't load Google Maps correctly. See the JavaScript console for technical details."


    Thank You,

    Bams




  •  850
    Jelly replied

    Hi,

    For the email, please make sure your hosting provide allow send an email to PHP email function, if not it will not work.

    For the map, please check our instruction here:

    Google Maps Errors For HTML

    Best Regards,
    Jelly Team