FireBoard
Welcome, Guest
Please Login or Register.    Lost Password?
Notification email in TableBoss Reservation Desk (1 viewing) (1) Guest
Go to bottom Favoured: 0
TOPIC: Notification email in TableBoss Reservation Desk
#523
Pedro (Visitor)

Notification email in TableBoss Reservation Desk 1 Year, 10 Months ago  
The system no send email in mode TableBoss Reservation Desk (For Managers)?

Tank..

Pedro

Brasil joomla comunity
 
Logged Logged  
  The administrator has disabled public write access.
#524
mfabrizio (Admin)
Eat, Drink and be Merry
Administrator
Posts: 143
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Ormond Beach, FL Birthdate: 1954-01-19
Re:Notification email in TableBoss Reservation Desk 1 Year, 10 Months ago Karma: 1  
Hi Pedro,

When reservations are made with the Reservation Desk, TableBoss does not send an email notifications. Notifications are only sent when reservations are made with the Reservation Wizard.

Regards,

Mark
 
Logged Logged  
  The administrator has disabled public write access.
#525
Pedro (Visitor)

Re:Notification email in TableBoss Reservation Desk 1 Year, 10 Months ago  
How to insert the function send confirmation of the wizard mode in mode reservation desk mode.

Code:

$this->sendConfirmation();
}
}

function sendConfirmation(){
// check to see what we should should send out for mails
jimport('joomla.mail.mail');

$config =& TBConfiguration::getInstance();
if( $config->notificationEmail ){
$mailer =& JMail::getInstance('TB-public-notification');
$mailer->ContentType = 'text/html';
$mailer->CharSet = "UTF-8";
$mailer->From = $config->notificationFrom;
if( $config->notificationFromName ){
$mailer->FromName = $config->notificationFromName;
}
$mailer->AddReplyTo( $this->email, $this->name );
$mailer->Subject = $this->replaceVars( $config->notificationSubject );
$mailer->Body =  $this->replaceVars( $config->notificationBody );
$mailer->AddAddress( $config->notificationEmail );
if( !empty( $config->notificationCC ) ){
$mailer->AddBCC( $config->notificationCC );
}
if( $config->attachReportToNotification ){
importplus( 'tableboss.report.report' );
$report =& TBReportMgr::create('reservations', array('filename'=>'Reservations', 'end'=>'none') );
$format = function_exists('iconv') ? 'xls' : 'csv';
$report->setFormat($format);
$mailer->AddStringAttachment( $report->toString(), $report->getFilename(), $format=='xls'?'binary':'base64', $report->getContentType() );
}
if( !$mailer->Send() ){
$this->_logger->debug( "Error Sending Internal Mail" );
jimport('joomla.filesystem.file');
if( isset($path) && JFile::exists( $path ) ){
JFile::delete( $path );
}
}
}
if( $config->sendConfirmation ){
$mailer =& JMail::getInstance('TB-public');
$mailer->ContentType = 'text/html';
$mailer->CharSet = "UTF-8";
$from = $config->notificationFrom;
if( $config->notificationFromName ){
$from = array( $config->notificationFrom, $config->notificationFromName);
}
$mailer->setSender( $from );
$mailer->setSubject( $this->replaceVars( $config->customerNotificationSubject ) );
$mailer->setBody( $this->replaceVars( $config->customerNotificationBody ) );
$mailer->addRecipient( $this->email );
if( !$mailer->Send() ){
$this->_logger->debug( "Error Sending Internal Mail" );
}
}
}



tank..

Pedro

Brasil joomla comunity
 
Logged Logged  
  The administrator has disabled public write access.
#526
Pedro (Visitor)

Re:Notification email in TableBoss Reservation Desk 1 Year, 10 Months ago  
Pedro wrote:

How to insert the function send confirmation of the wizard mode in mode reservation desk mode.????????



How to insert the function send confirmation of the wizard mode in mode reservation desk mode.

Code:

$this->sendConfirmation();
}
}

function sendConfirmation(){
// check to see what we should should send out for mails
......
.....
}
}



tank..

Pedro

Brasil joomla comunity
 
Logged Logged  
  The administrator has disabled public write access.
#533
extension (User)
Senior Boarder
Posts: 48
graphgraph
User Offline Click here to see the profile of this user
Re:Notification email in TableBoss Reservation Desk 1 Year, 10 Months ago Karma: 0  
Hi Pedro,

Did you found a solution for this problem, i have the same problem here.

Regards
Boris
 
Logged Logged  
  The administrator has disabled public write access.
Go to top