You first need to include the PHPMailerAutoload.php
I am assuming that you have saved this extension as protected/extensions/mailer/your_extension
Add the folllowing line at the top of your code
include_once Yii::getPathOfAlias('application.extensions.mailer') . '/Emailer.php';
// and then rest of your code.