...

View Full Version : addin smpt to this script



TheLethal
12-24-2006, 06:44 PM
hi im not sure hw but can someone maybe add smpt setting to this script

<?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">

TheLethal
12-24-2006, 08:58 PM
anyonehelp

ess
12-24-2006, 10:04 PM
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)


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.


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

TheLethal
12-24-2006, 10:28 PM
thanx i dutn have a clue abt smpt and stuff, eee lol



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum