PHP mail script not sending to my email
<p>i have setup a form than when pressed the image submit button it sends the filled form to the buisness email.</p>

<p>Here is the script i have used for php linked from my html.</p>

<pre><code>&lt;?php
if(isset($_POST['submit'])) {
$emailbody = 'First Name = '.$_POST['Name']."\n"
.'Surname = '.$_POST['SName']."\n"
.'Email = '.$_POST['email']."\n"
.'Contact Number = '.$_POST['tel_no']."\n"
.'Adress Line 1 = '.$_POST['address_line_1']."\n"
.'Adress Line 2 = '.$_POST['address_line_2']."\n"
.'Town/City = '.$_POST['town_city']."\n"
.'County = '.$_POST['county']."\n"
.'Post Code = '.$_POST['Post_code']."\n"
.'Newsletter = '.$_POST['newsletter']."\n"
.'Events = '.$_POST['events']."\n"
mail('My email@gmail.com', 'Order Form', $emailbody);

    } else {
header('location: Payment.html');
    }
?&gt;
</code></pre>

<p>The form on the html has been linked via a action. is there anything wrong with the script?</p>

<p>PS on pressing the image it is then forwarded to paypal payment page.</p>

<p>Cheers</p>

<p>Edit:
Here is the HTML Code:</p>

<pre><code>    &lt;form name="form1" method="post" action="PaymentFormmail.php" align="left"&gt;
    &lt;section&gt;
    &lt;h1&gt;Basic Infomation:&lt;/h1&gt;
     &lt;p&gt;
    &lt;label for="SName"&gt;First Name:&lt;/label&gt;
    &lt;input type="text" name="Name" id="Name" style="margin-left:50px;"&gt;
  &lt;/p&gt;
  &lt;p&gt;
    &lt;label for="SName"&gt;Surname:&lt;/label&gt;
    &lt;input type="text" name="SName" id="SName" style="margin-left:64px;"&gt;
    &lt;/p&gt;
     &lt;p&gt;
      &lt;label for="email"&gt;Email Address&lt;/label&gt;
      &lt;input type="text" name="email" id="email" style="margin-left:28px;"&gt;
  &lt;/p&gt;
  &lt;p&gt;
    &lt;label for="tel_no"&gt;Contact Number:&lt;/label&gt;
    &lt;input type="text" name="tel_no" id="tel_no" style="margin-left:14px;"&gt;
  &lt;/p&gt;
&lt;/section&gt;
&lt;section&gt;
&lt;h1&gt;Billing Infomation:&lt;/h1&gt;
  &lt;p&gt;
    &lt;label for="address_line_1"&gt;Address line 1:*&lt;/label&gt;
    &lt;input name="address_line_1" type="text" id="address_line_1" align="right" style="margin-left:20px;"&gt;
  &lt;/p&gt;
  &lt;p&gt;
    &lt;label for="address_line_2"&gt;Address Line 2: &lt;/label&gt;
    &lt;input type="text" name="address_line_2" id="address_line_2"style="margin-left:20px;"&gt;
  &lt;/p&gt;
  &lt;p&gt;
    &lt;label for="town_city"&gt;Town/City:*&lt;/label&gt;
    &lt;input type="text" name="town_city" id="town_city"style="margin-left:55px;"&gt;
  &lt;/p&gt;
  &lt;p&gt;
    &lt;label for="county"&gt;County:*&lt;/label&gt;
    &lt;input type="text" name="county" id="county"style="margin-left:73px;"&gt;
  &lt;/p&gt;
  &lt;p&gt;
    &lt;label for="Post_code"&gt;Post Code:*&lt;/label&gt;
    &lt;input type="text" name="Post_code" id="Post_code"style="margin-left:46px;"&gt;
  &lt;/p&gt;
&lt;h1&gt;News and Events:&lt;/h1&gt;
&lt;p&gt;
  &lt;input name="newsletter" type="checkbox" id="newsletter" value="Yes"&gt;
  &lt;label for="newsletter"&gt;I wish to receive the monthly newsletter from Monster Computers UK&lt;/label&gt;
&lt;/p&gt;
&lt;p&gt;
  &lt;input name="events" type="checkbox" id="events" value="Yes"&gt;
  &lt;label for="events"&gt;I wish to receive any infomation about upcomming events&lt;/label&gt;
&lt;/p&gt;

  &lt;/section&gt;
&lt;/form&gt;

&lt;p&gt;By Clicking Pay now you agree to the Terms of Service&lt;/p&gt;
                    &lt;form action="https://www.paypal.com/cgi-bin/webscr" method="post"&gt;
                    &lt;input type="hidden" name="cmd" value="_xclick"&gt;
                    &lt;input type="hidden" name="business" value="monstercomputeruk@gmail.com"&gt;
                    &lt;input type="hidden" name="lc" value="GB"&gt;
                    &lt;input type="hidden" name="item_name" id="byoName" value="0"&gt;
                    &lt;input type="hidden" name="amount" id="finalpaypal"&gt;
                    &lt;input type="hidden" name="currency_code" value="GBP"&gt;
                    &lt;input type="hidden" name="button_subtype" value="services"&gt;
                    &lt;input type="hidden" name="no_note" value="0"&gt;
                    &lt;input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynowCC_LG.gif:NonHostedGuest"&gt;
                    &lt;input name="submit" type="image" onClick="MM_validateForm('Name','','R','SName','','R','email','','R','address_line_1','','R','town_city','','R','county','','R','Post_code','','R');return document.MM_returnValue" src="images/buttons/Pay Now.png" alt="PayPal — The safer, easier way to pay online." border="0"&gt;
                    &lt;img alt="" border="0" src="https://www.paypalobjects.com/en_GB/i/scr/pixel.gif" width="1" height="1"&gt;
                    &lt;/form&gt;
</code></pre>
