3.1.1
===================
- Fixed: BSMail::send() would fail if sending a HTML/multipart email because it would call BSFunctions::Rand()
+- Fixed: BSMail::send() would not send HTML emails due to a caps typo in the $sendHtml param
+- Change: BSMail::send() now labels iteslf in its BSApp::debug() messages
3.1.0
===================
*
* @return bool Status of the message
*/
- public function send($address, $name = null, $sendHtml = false)
+ public function send($address, $name = null, $sendhtml = false)
{
if (empty($address))
{
// TODO - add support for SMTP
if (!@ini_get('sendmail_path'))
{
- BSApp::debug("email: no sendmail -> not sending");
+ BSApp::debug("BSMail: no sendmail -> not sending");
return false;
}
// attempt to send the mail!
if (mail($tostring, $subject, $body, $headers, "-f {$from}"))
{
- BSApp::debug("email: sent to $address");
+ BSApp::debug("BSMail: sent to $address");
}
else
{
- BSApp::debug("email: error sending to $address");
+ BSApp::debug("BSMail: error sending to $address");
}
}