Browsed by
Snippet Tag: resque

resque class

resque class

<?php class sendEmail { function perform() { include_once("/var/www/html/classes/class.mailer.php"); $oMailer = new mailer(); $email = $this->args["email"]; return $oMailer->sendMail("This is a test message sent from our queue", "test mail from queue", $email); } }

no-queue-emailer

no-queue-emailer

include(dirname(__FILE__)."/classes/class.mailer.php"); $oMailer = new mailer(); $start = microtime(true); $x = $oMailer->sendMail("This is a test message", "test mail", $_POST["email"]); if( $x === true ) { print "Mail sending passed"; } else { print "Mail sending failed"; } $end = microtime(true); print "<p>Time elapsed in seconds: ".($end – $start);