<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Php form not emailing content from ftphost.btconnect.com in Archive</title>
    <link>https://business.forums.bt.com/t5/Archive/Php-form-not-emailing-content-from-ftphost-btconnect-com/m-p/24737#M13126</link>
    <description>&lt;P&gt;Please help, I am trying out a php form on the home.btconnet.com/uniktest pages (the free space)&lt;/P&gt;&lt;P&gt;I've set up a simple HTML form, and I process it through an equally simple PHP process to mail the contents to me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when processing my form submission I'm not receiving the email, although I reach the confirmation page.&lt;/P&gt;&lt;P&gt;So far I have tried sending from my BT Account and the unik@ftphost.btconnect.com as the "send from" value. Neither has resulted in an email &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The form HTML is:&lt;/P&gt;&lt;P&gt;//** As below&lt;/P&gt;&lt;DIV&gt;&amp;lt;form name="input" action="&lt;A target="_blank" rel="nofollow" href="http://home.btconnect.com/uniktest/private/process.php"&gt;http://home.btconnect.com/uniktest/private/process.php&lt;/A&gt;" method="post" enctype="text/plain"&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;Your Name: &amp;lt;input type="text" name="name" size="20"&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;lt;br /&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;lt;br /&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;Your Email:&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;lt;input type="text" name="email" &amp;nbsp;size="20"&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;Your Contact Telephone:&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;lt;input type="text" name="phone" size="20"&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;lt;br /&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;lt;br /&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;How would you like to here from us: &amp;lt;br /&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;lt;input type="radio" name="contact" value="email" /&amp;gt; Email&lt;/DIV&gt;&lt;DIV&gt;&amp;lt;input type="radio" name="contact" value="phone" /&amp;gt; Phone&lt;/DIV&gt;&lt;DIV&gt;&amp;lt;br /&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;lt;br /&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;What product you are interested in:&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;lt;input type="text" name="product" &amp;nbsp;size="20"&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;lt;br&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;lt;input type="submit" value="Send"&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;lt;input type="reset" value="Reset"&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;lt;/form&amp;gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The PHP processing is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;?php&lt;/P&gt;&lt;P&gt;$SendFrom = &amp;nbsp; &amp;nbsp;"Unik Enquiry &amp;lt;uniktest@ftphost.btconnect.com&amp;gt;";&lt;/P&gt;&lt;P&gt;$SendTo = &amp;nbsp; &amp;nbsp; &amp;nbsp;"sarah@unikgifts.co.uk";&lt;/P&gt;&lt;P&gt;$SubjectLine = "New u_ni_k enquiry";&lt;/P&gt;&lt;P&gt;$ThanksURL = &amp;nbsp; "../thankyou.php"; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;foreach ($_POST as $Field=&amp;gt;$Value)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; $MsgBody .= "$Field: $Value\n";&lt;/P&gt;&lt;P&gt;$MsgBody .= "\n" . @gethostbyaddr($_SERVER["REMOTE_ADDR"]) . "\n" .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; $_SERVER["HTTP_USER_AGENT"];&lt;/P&gt;&lt;P&gt;$MsgBody = htmlspecialchars($MsgBody, ENT_NOQUOTES);&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;mail($SendTo, $SubjectLine, $MsgBody, "From: $SendFrom");&lt;/P&gt;&lt;P&gt;header("Location: $ThanksURL");&lt;/P&gt;&lt;P&gt;?&amp;gt;&lt;/P&gt;&lt;P&gt;**//&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I not test this on this server? I don't really want to do this on the live server?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone out there able to help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sarah D&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Apr 2011 10:47:32 GMT</pubDate>
    <dc:creator>unikwebpages</dc:creator>
    <dc:date>2011-04-18T10:47:32Z</dc:date>
    <item>
      <title>Php form not emailing content from ftphost.btconnect.com</title>
      <link>https://business.forums.bt.com/t5/Archive/Php-form-not-emailing-content-from-ftphost-btconnect-com/m-p/24737#M13126</link>
      <description>&lt;P&gt;Please help, I am trying out a php form on the home.btconnet.com/uniktest pages (the free space)&lt;/P&gt;&lt;P&gt;I've set up a simple HTML form, and I process it through an equally simple PHP process to mail the contents to me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when processing my form submission I'm not receiving the email, although I reach the confirmation page.&lt;/P&gt;&lt;P&gt;So far I have tried sending from my BT Account and the unik@ftphost.btconnect.com as the "send from" value. Neither has resulted in an email &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The form HTML is:&lt;/P&gt;&lt;P&gt;//** As below&lt;/P&gt;&lt;DIV&gt;&amp;lt;form name="input" action="&lt;A target="_blank" rel="nofollow" href="http://home.btconnect.com/uniktest/private/process.php"&gt;http://home.btconnect.com/uniktest/private/process.php&lt;/A&gt;" method="post" enctype="text/plain"&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;Your Name: &amp;lt;input type="text" name="name" size="20"&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;lt;br /&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;lt;br /&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;Your Email:&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;lt;input type="text" name="email" &amp;nbsp;size="20"&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;Your Contact Telephone:&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;lt;input type="text" name="phone" size="20"&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;lt;br /&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;lt;br /&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;How would you like to here from us: &amp;lt;br /&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;lt;input type="radio" name="contact" value="email" /&amp;gt; Email&lt;/DIV&gt;&lt;DIV&gt;&amp;lt;input type="radio" name="contact" value="phone" /&amp;gt; Phone&lt;/DIV&gt;&lt;DIV&gt;&amp;lt;br /&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;lt;br /&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;What product you are interested in:&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;lt;input type="text" name="product" &amp;nbsp;size="20"&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;lt;br&amp;gt;&amp;lt;br&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;lt;br&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;lt;input type="submit" value="Send"&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;lt;input type="reset" value="Reset"&amp;gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;lt;/form&amp;gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The PHP processing is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;?php&lt;/P&gt;&lt;P&gt;$SendFrom = &amp;nbsp; &amp;nbsp;"Unik Enquiry &amp;lt;uniktest@ftphost.btconnect.com&amp;gt;";&lt;/P&gt;&lt;P&gt;$SendTo = &amp;nbsp; &amp;nbsp; &amp;nbsp;"sarah@unikgifts.co.uk";&lt;/P&gt;&lt;P&gt;$SubjectLine = "New u_ni_k enquiry";&lt;/P&gt;&lt;P&gt;$ThanksURL = &amp;nbsp; "../thankyou.php"; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;foreach ($_POST as $Field=&amp;gt;$Value)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; $MsgBody .= "$Field: $Value\n";&lt;/P&gt;&lt;P&gt;$MsgBody .= "\n" . @gethostbyaddr($_SERVER["REMOTE_ADDR"]) . "\n" .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; $_SERVER["HTTP_USER_AGENT"];&lt;/P&gt;&lt;P&gt;$MsgBody = htmlspecialchars($MsgBody, ENT_NOQUOTES);&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;mail($SendTo, $SubjectLine, $MsgBody, "From: $SendFrom");&lt;/P&gt;&lt;P&gt;header("Location: $ThanksURL");&lt;/P&gt;&lt;P&gt;?&amp;gt;&lt;/P&gt;&lt;P&gt;**//&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can I not test this on this server? I don't really want to do this on the live server?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyone out there able to help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sarah D&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2011 10:47:32 GMT</pubDate>
      <guid>https://business.forums.bt.com/t5/Archive/Php-form-not-emailing-content-from-ftphost-btconnect-com/m-p/24737#M13126</guid>
      <dc:creator>unikwebpages</dc:creator>
      <dc:date>2011-04-18T10:47:32Z</dc:date>
    </item>
  </channel>
</rss>

