<?php /** * Sample replacements for both PHP mail() and ezmlm_hash() functions * built using the Arioch_mail class. * Put/include this code in auto_prepend.php or at beginning of script. */ require_once("arioch_class.inc");
$Arioch['host'] = 'smtp.host.com'; /* Change as needed */ $Arioch['port'] = 25; /* Change as needed */ $Arioch['dbg'] = true; /* Change as needed */ $Arioch['dbg_pfx'] = '/tmp/arioch.debug'; /* Change as needed */
function mail($to, $subject, $message, $headers = null, $params = null) { global $Arioch;
$smtp = new Arioch_mail($Arioch); $smtp->setup($to, $subject, $headers, $params); return $smtp->send($message); }
function ezmlm_hash($addr) { $ez = new Arioch_ezmlm(); return $ez->hash($addr); } ?>
|