Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 8 of 8
  1. #1
    Join Date
    Apr 2006
    Location
    Leamington Spa
    Posts
    1,375
    Tokens
    72

    Latest Awards:

    Default PHP - Scripts can't email?

    Right well, I've tryed everything to make a mailer script I've made work, but it just wont.
    Here's my code:
    PHP Code:
    <?php
    $to 
    "[email protected]";
    $subject "Testinggggg";
    $message "Hey!\nTest mail innit.";
    $headers "From: Tanzim.org <[email protected]>";

    mail($to,$subject,$message,$headers);

    echo(
    "Message headed " $subject " was sent to " $to ".");
    ?>
    I go to my webmail account thingy ([email protected]) and there's nothing in the inbox.

    Is there some setting I need to change in cPanel for mail() to work?

    +Reps to any help atall.
    i've been here for over 8 years and i don't know why

  2. #2
    Join Date
    Aug 2006
    Location
    Manchester, UK
    Posts
    2,016
    Tokens
    141
    Habbo
    florx

    Latest Awards:

    Default

    Get your host to check if there are any bounces or check spam if you have a spam folder.

    Else php.net and search mail(). Good luck.

  3. #3

    Default

    i think you need to visit the page and run the script..?

  4. #4
    Join Date
    Sep 2005
    Location
    East London
    Posts
    3,028
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by FlorX View Post
    Get your host to check if there are any bounces or check spam if you have a spam folder.

    Else php.net and search mail(). Good luck.
    I think hes right ^ Most "tester" emails appear in spam

  5. #5
    Join Date
    Sep 2006
    Location
    Evanston, Illinois.
    Posts
    2,361
    Tokens
    0

    Latest Awards:

    Default

    make sure your host is set to Linux, my windows host didnt support php but yours may
    How could this hapen to meeeeeeeeeeeeeee?lol.

  6. #6
    Join Date
    May 2007
    Posts
    10,481
    Tokens
    3,140

    Latest Awards:

    Default

    The hostwill almost def have php Your Host may not have email enabled or the isp might not allow it. Contact your host and ask.
    Chippiewill.


  7. #7
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    Quote Originally Posted by 00chips View Post
    The hostwill almost def have php Your Host may not have email enabled or the isp might not allow it. Contact your host and ask.
    I highly doubt an ISP will stop you sending email.

  8. #8
    Join Date
    Jan 2007
    Location
    Canada eh?
    Posts
    766
    Tokens
    75

    Default

    Quote Originally Posted by 00chips View Post
    The hostwill almost def have php Your Host may not have email enabled or the isp might not allow it. Contact your host and ask.
    Um no they wouldn't.... very likely not if he has a Windows Hosting Package. It is actually not that rare to find someone who has Windows Hosting who doesn't even know the difference and Windows was cheaper or something - so if you don't already know then just double check you're using Linux Hosting.

    Quote Originally Posted by Blob View Post
    I highly doubt an ISP will stop you sending email.
    He's quite right, unless the ISP has like blocked your server in your specific datacentre then that's highly unlikely.

    Generally speaking the best way to tell is to make a file and then insert the following code and visit it in your browser. Scroll down till you find the bit about PHP sendmail or just mail().

    PHP Code:
    <?php
    echo phpinfo();
    ?>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •