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:

server_mon.php
(Demo Script)
perl_smtp_email.php
(Demo Script)
cookies.php
(Demo Script)
pad_test.php
(Demo Script)
md5_password.php
(Demo Script)
userdetails.php
(Demo Script)
ip.txt
(Demo Script)
email.php
(Demo Script)
phpself.php
(Demo Script)
htpasswd_maker.php
(Demo Script)
url_verify.php
(Demo Script)
birthday.php
(Demo Script)
phpinfo.php
(Demo Script)
password.php
(Demo Script)
time.php
(Demo Script)
mysql_backup.php
(Demo Script)
smarty.php
(Demo Script)
char_limit.php
(Demo Script)
title_case.php
(Demo Script)
convert_link.php
(Demo Script)
unix_time.php
(Demo Script)
html.php
(Demo Script)
ip_monitor.php
(Demo Script)
floor_time.php
(Demo Script)

To colour code your own PHP paste it here: