01-30-2008, 03:44 AM
|
#27 (permalink)
|
|
The Prestige
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
|
PHP Code:
public static function connect($connectSMTP, $port)
{
try {
if (!ini_set('SMTP', $connectSMTP) && !ini_set('smtp_port', $port) )
{
$ini = array(
0 => ini_set('SMTP', $connectSMTP),
1 => ini_set('smtp_port', $port)
);
foreach($ini as $_ini => $val)
{
return $ini[$val];
}
}
} catch (Exception $_1error)
{
$_1error = 'There seems to be a problem with the connection';
return $_1error;
}
__________________
VillageIdiot can have my babbies ;d
|
|
|
|