HabboxWiki needs you!
Are you a Habbo buff? Or maybe a rare trader with a bunch of LTDs? Get involved with HabboxWiki to share your knowledge!
Join our team!
Whether you're raving for rares, excited for events or happy helping, there's something for you! Click here to apply
Need a helping hand?
Check out our guides for all things to help you make friends, make rooms, and make money!


Results 1 to 1 of 1
  1. #1
    Join Date
    Apr 2005
    Location
    North Carolina, USA
    Posts
    4,535
    Tokens
    0

    Latest Awards:

    Default [PHP] PHP mail() Function

    Here is something you might need later on:

    A Tutorial about the Function Mail

    Lets start off by making a file called: email.php

    This is the format for the Mail Function:
    PHP Code:
    mail($_GET[email],"SUBJECT",$msg,"From: <COMPANY>[email protected]\n"); 
    Paste that into the email.php file.

    Save it.

    Now we need to edit that code.

    Example my comany is HNFM and im contacting them about the DJ Panel.

    PHP Code:
    mail($_GET[email],"Information About The DJ Panel",$msg,"From: <HNFM>[email protected]\n"); 
    Edit that to the right information.

    Save it.

    Now Lets work on the $msg.

    Here is the Message Variable:
    PHP Code:
    $msg .= "YOUR MESSAGE BEFORE THE N's \n\n"
    You can have many, example:

    PHP Code:
    $msg .= "ATTENTION: About Your Application At HNFM\n";
    $msg .= "---------------------------------\n\n";
    $msg .= "Welcome! Im Kevin Your New Director At HNFM,\n\n";
    $msg .= "I Need You To Respong With The Following Information for the DJ Panel.\n\n";
    $msg .= "Username:\n";
    $msg .= "Password:\n\n";
    $msg .= "Please Reply To The Following Email: .";
    $msg .= "Again I Thank You For Applying and I hope for a reply soon,\n\n";
    $msg .= "Kevin\n\n";
    $msg .= "-------------------------------\n\n";
    $msg .= "HNFM Owner / Director Of Applications\n\n"
    Many more or many less it dont matter

    Now for selecting the email to send it to.

    go to: http://www.yoursite.com/email.php?em...bonewsiefm.net

    Or for more advanced people making user systems or DJ Panels Just:


    PHP Code:
    http://www.yoursite.com/email.php?email=<? echo $email?>
    Define email as like

    PHP Code:
    $query mysql_query("SELECT * FROM user WHERE username='$username'");
    $row mysql_fetch_array($query) or die(mysql_error()); 
    And do:
    PHP Code:
    $email $row[email]; 
    Thats about it for now.

    BTW: This was my first tutorial

    Thanks,
    Kevin
    (Dentafrice)
    Last edited by nets; 28-05-2006 at 10:16 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
  •