0

I am having a onload pop up of modal window which have a signup button clicking which opens a new modal which has a form which when submits should send a mail to the specified e-mail address. Following is the script written by me. I was able to test it succesfully on our internal servers but not able to so on this domain: Wordlywise.som.sg

<?php
    if(isset($_POST['submit']))
     {



       $recipient="name@example.com";
        $subject="New Signup entry";
        $sender=$_POST["name"];
        $school=$_POST["school"];
        $senderemail=$_POST["email"];
        $mailBody="Name: $sender\nEmail: $senderemail\n\n$school";
        if(mail($recipient, $subject, $mailBody, "From: $sender <$senderemail>"))
        {
           echo "Thanks! Your Mail has been sent";

        }
     }
        ?>

Please let me know what I need to change in the script?

HalfWebDev
  • 7,022
  • 12
  • 65
  • 103

0 Answers0