The source of perl_smtp_email.php (click to demo the file) viewed times.
If I wrote this code, then it is licensed under the GPL. If someone else wrote it, then please ask them if you want to use the code.
<?
include("Mail.php");
$recipients = "to-someone@somewhere.com";
$headers["From"] = "from-someone@somewhere.com";
$headers["To"] = "to-someone@somewhere.com";
$headers["Subject"] = "Test message";
$body = "TEST MESSAGE!!!";
$params["host"] = "domain.com";
$params["port"] = "25";
$params["auth"] = true;
$params["username"] = "";
$params["password"] = "";
// Create the mail object using the Mail::factory method
// Uncomment mail commands below to get it working!
//$mail_object =& Mail::factory("smtp", $params);
//$mail_object->send($recipients, $headers, $body);
?>
If you want to have a look at the source code, chose a file from this list:
To colour code your own PHP paste it here: