Sending Mail from Phrameworks
by Castwide on 3-11-2008 2 commentsThe following code demonstrates how to send an email in Phrameworks.
require_once(PHRAME_DIR . '/includes/phramemailer.class.php');
$mailer = new phrameMailer();
$mailer->Configure();
$mailer->IsHTML(true);
$mailer->AddAddress('recipient@somewhere.com');
$mailer->Subject = 'The subject';
$mailer->Body = 'The body';
$mailer->Send();
The Configure() function determines the mailing method and sets the sender address based on the settings defined in the SMTP options in the admin control panel.
Comments
Webguy - 3-13-2008 1:47 PM
Castwide - 3-13-2008 3:12 PM