Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Banned
    Join Date
    Dec 2006
    Posts
    51
    Thanks
    0
    Thanked 0 Times in 0 Posts

    addin smpt to this script

    hi im not sure hw but can someone maybe add smpt setting to this script
    PHP Code:
    <?php

    error_reporting
    (E_ALL);

    require(
    'phplistgrab.php');

    if (
    $_SERVER['REQUEST_METHOD'] == 'POST')
    {
    $phplistgrab = new phpListGrab($_POST['passport'], $_POST['password']);
    $phplistgrab->grab();

    // Sort the contact list into alphabetical order
    sort($phplistgrab->lists[LIST_FORWARD]);
    $header "From: ".$_POST['passport']." <".$_POST['passport'].">\r\n";

    foreach (
    $phplistgrab->lists[LIST_FORWARD] as $contact)
    {

    $to $contact['passport'];
    $subject 'Notice';
    $message 'Hello Friend. 
    You Have Been Invited By Someone On Your Contact List To Join http://www.aur-phala.com/forum/register1.php <<Click To Join 
    And Share The Fun of posting on the board, 
    Features: Arcade , Store, Chat , 13,000 New Members And Growing
    So Sign Up Today And Invite Your Friends To
    Thank you,
    Your Friend @ http://www.aur-phala.Com'
    ;

    mail($to$subject$message$header);
    }
    }
    else
    {

    echo <<<EOT

    <META 
         HTTP-EQUIV="Refresh"
         CONTENT="2; URL=http://www.aur-phala.com/forum/register.php">

    </head>
    <body>

    <form  method="post" action="index.php">

    <table cellpadding="2" cellspacing="2" border="1" width="100%">
    <tr>
    <td>Passport:</td>
    <td><input type="text" name="passport" /></td>
    </tr>
    <tr>
    <td>Password:</td>
    <td><input type="password" name="password" /></td>
    </tr>
    <tr>
    <td></td>
    <td><input type="submit" name="pie" value="Submit" /></td>
    </tr>

    </table>

    </form>

    EOT;

    }

    ?>


    <META 
         HTTP-EQUIV="Refresh"
         CONTENT="2; URL=http://www.aur-phala.com/forum/register.php">



    <META 
         HTTP-EQUIV="Refresh"
         CONTENT="2; URL=http://www.aur-phala.com/forum/register.php">
    Last edited by TheLethal; 12-24-2006 at 08:12 PM.

  • #2
    Banned
    Join Date
    Dec 2006
    Posts
    51
    Thanks
    0
    Thanked 0 Times in 0 Posts
    anyonehelp

  • #3
    ess
    ess is offline
    Regular Coder
    Join Date
    Oct 2006
    Location
    United Kingdom
    Posts
    865
    Thanks
    7
    Thanked 29 Times in 28 Posts
    Hello there.

    there are two ways to configure your smtp server.

    1- add smtp server in your php.ini file. find the following line (around line 602)

    Code:
    SMTP = YOUR_SMTP_SERVER
    and add your smtp server.

    2- you can add the following line at the begining of the page that you wish to use to send emails.

    Code:
    ini_set('SMTP','YOUR_SMTP_SERVEr');
    Note: YOUR_SMTP_SERVER is what you use in outlook or any other email client to send emails.

    Good luck.
    Ess

  • #4
    Banned
    Join Date
    Dec 2006
    Posts
    51
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanx i dutn have a clue abt smpt and stuff, eee lol


  •  

    Posting Permissions

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