Closed Thread
Results 1 to 3 of 3

Thread: PHP Mail

  1. #1
    leigh_rendle38 is offline x10Hosting Member leigh_rendle38 is an unknown quantity at this point
    Join Date
    May 2011
    Location
    England
    Posts
    20

    PHP Mail

    Is the Php mail function still working with free accounts as I am unable to get my script to run properly.

    If it is still available to use with the free hosting would some one please offer me some help, this would be greatly appreciated. thank you.
    Last edited by leigh_rendle38; 05-09-2011 at 05:56 PM.

  2. #2
    stpvoice's Avatar
    stpvoice is offline Community Support Rep stpvoice has a brilliant futurestpvoice has a brilliant futurestpvoice has a brilliant future
    Join Date
    Dec 2008
    Location
    United Kingdom
    Posts
    5,939

    Re: PHP Mail

    Hello,

    php mail() should be working correctly on your server. Please note that:
    a) there are known issues with sending to Windows Live addresses because of past abuse
    b) the content-type header must be present and set to text/plain.

    Thanks.


  3. #3
    leigh_rendle38 is offline x10Hosting Member leigh_rendle38 is an unknown quantity at this point
    Join Date
    May 2011
    Location
    England
    Posts
    20

    Re: PHP Mail

    Please will some one tell me why this is not working on this server ?


    <?php

    $to = "leigh_rendle@blueyonder.co.uk";

    $subject = "Web Contact";

    $email = $_REQUEST['Email'] ;
    $headers = 'MIME-Version: 1.0' . "\r\n";
    $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
    $headers .= "From: $email";

    $message = $_REQUEST['Enqiury'] ;

    $sex = $_REQUEST['Sex'] ;

    $firstname = $_REQUEST['Firstname'] ;

    $Surname = $_REQUEST['Surname'] ;

    $country = $_REQUEST['Country'] ;

    $type = $_REQUEST['Type'] ;



    $body ="

    From:$sex $firstname $Surname \r

    Email: $email \r

    Country: $country \r

    Your Enqiury: $type \r

    Message: $message \n

    " ;

    $sent = mail($to, $subject, $body, $headers) ;


    if($sent)

    echo

    Do this or that

    Thank you
    Last edited by leigh_rendle38; 05-10-2011 at 01:23 PM.

Closed Thread

Similar Threads

  1. Replies: 4
    Last Post: 10-16-2010, 02:01 AM
  2. Replies: 1
    Last Post: 10-04-2010, 02:46 PM
  3. Replies: 0
    Last Post: 07-09-2010, 08:18 AM
  4. Replies: 1
    Last Post: 09-30-2009, 10:52 AM
  5. Replies: 3
    Last Post: 12-03-2007, 08:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers