Hi i Have This Script and i need it to send out a email to the contacts when the emails are generated by the user
<?php
/*
* AddressBookImport.com is a PHP-Hotmail gateway. It will allow you to
* retrieve your contacts from Hotmail MSN Server using PHP and cURL Libraries.
*
* Created by: AddressBookImport.com <info@addressbookimport.com>, November 01, 2005
*
* This program is trial version of this script. The script can be purchased at
* www.AddressBookImport.com
*/
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" id="AddressBookImport.com">
<head>
<title>Hotmail Address Book Import Script - AddressBookImport - Address Book Import Script for Yahoo, Hotmail, Gmail, AOL and more</title>
<meta name="keywords" content="AddressBookImport, addressbook, import, script, grabber, addressbook grabber, addressbook import script, php, curl" />
<meta name="description" content="AddressBookImport - Address Book Import Script for Yahoo, Hotmail, Gmail, AOL and more" />
<meta name="author" content="AddressBookImport.com" />
</head>
<body bgcolor=#FFFFFF leftmargin=0 topmargin=5 marginwidth=0 marginheight=0>
<br>
<h3 align=center>Hotmail AddressBookImport Script - www.AddressBookImport.com</h3><hr size=1><br>
<table border=0 cellspacing=0 cellpadding=1 width="50%" align=center>
<form method="post" action="<?= $_SERVER['SCRIPT_NAME']; ?>">
<tr>
<td width="120"><img src="http://www.AddressBookImport.com/images/invite/hotmail.gif"></td>
<td>Hotmail Email Address:<br /><input type="text" class="form1" name="emailaddress"></td>
<td>Hotmail Password:<br /><input type="password" class="form1" name="password"></td><td><br /><input type="submit" class="form1" value="Submit"></td>
</tr>
</form>
</table>
<?php
if ($_SERVER["CONTENT_LENGTH"] > 0)
{
$varURL = "http://www.AddressBookImport.com/trial/";
$params = "service=Hotmail&emailaddress=" . $_POST["emailaddress"] . "&password=" . $_POST["password"];
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_URL,$varURL);
curl_setopt($ch, CURLOPT_POST,1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
$content = curl_exec ($ch);
if ($content == "~Invalid Login~")
print('<br><br><div align=center>... INVALID LOGIN ...</div>');
else
{
print('<br><br><table border=1 cellspacing=0 cellpadding=3 width="727" align=center>');
$sList = explode("\n", $content);
for ($i=0; $i < count($sList); $i++)
{
$sList2 = explode(",", $sList[$i]);
if ($sList2[0] != null)
print('<tr><td width="10" align=center><input type="checkbox" id="check" name="check" checked></td><td>' . $sList2[0] . '</td><td>' . $sList2[1] . '</td></tr>');
}
print('</table>');
}
}
?>
</body>
</html>