// if ($HOOK_DIR !== "") { if (!@(include "{$HOOK_DIR}/fmhookpostcrm.inc.php")) { @(include "{$HOOK_DIR}/fmhookpostcrm.inc"); } } $bDoneSomething = true; } } // // Check obsolete SendMailFOption // if (IsMailOptionSet("SendMailFOption")) { SendAlert(GetMessage(MSG_FOPTION_WARN, array("LINE" => SENDMAIL_F_OPTION_LINE)), false, true); } $AutoResp = new AutoResponder(); // // check for autoresponse problems // $AutoResp->Process(true); // // send email // if (!isset($SPECIAL_VALUES["recipients"]) || empty($SPECIAL_VALUES["recipients"])) { // // No recipients - don't email anyone... // If nothing has been done above (CSV, logging, or CRM), // then report an error. // if (!$bDoneSomething) { if (!$bGotGoBack && !$bGotNextForm) {
$Keywords = 'Keywords for search engine'; $Description = 'Description for search engine'; $background_color = 'white'; include_once 'config.php'; include_once 'includes/ofuz_check_access.script.inc.php'; include_once 'includes/header.inc.php'; $do_auto_responder = new AutoResponder(); //$do_auto_responder->sessionPersistent('do_auto_responder', 'contacts.php', OFUZ_TTL); //$user_email_templ = new EmailTemplateUser(); $access = true; if (isset($_GET['id']) && $_GET['id'] != '') { $do_auto_responder_email = new AutoResponderEmail(); $do_auto_responder_email->getId($_GET['id']); $do_auto_responder_email->sessionPersistent('do_auto_responder_email', 'contacts.php', OFUZ_TTL); $user_email_templ = new EmailTemplateUser(); $do_auto_responder = new AutoResponder(); $idautoresponder = $_SESSION['do_auto_responder_email']->idautoresponder; if (!$do_auto_responder->isOwner($_SESSION['do_auto_responder_email']->idautoresponder)) { $access = false; } $do_auto_responder->getId($_SESSION['do_auto_responder_email']->idautoresponder); } else { $access = false; } ?> <script type="text/javascript"> //<![CDATA[ $(document).ready(function() { $("div[id^=templt]").hover(function(){$("div[id^=trashcan]",this).show("slow");},function(){$("div[id^=trashcan]",this).hide("slow");}); });
function mail_notification($subscription) { if (in_array(15, $subscription->courses)) { jimport('joomla.mail.helper'); $JLMS_CONFIG =& JLMSFactory::getConfig(); $SiteName = $JLMS_CONFIG->get('sitename'); $MailFrom = $JLMS_CONFIG->get('mailfrom'); $FromName = $JLMS_CONFIG->get('fromname'); JLoader::import('autoresponder_spu', JPATH_SITE, ''); $subject = AutoResponder::getSubject(); $body = AutoResponder::getBody(); $body = sprintf($body); $subject = JMailHelper::cleanSubject($subject); $body = JMailHelper::cleanBody($body); $from = $SiteName . ' ' . $FromName; $sender = JMailHelper::cleanAddress($MailFrom); $email = JMailHelper::cleanAddress(JRequest::getVar('x_email', '')); $user =& JFactory::getUser(); $name = explode(' ', $user->name); $firstname = isset($name[0]) && $name[0] ? $name[0] : $user->name; $body = str_replace('{firstname}', $firstname, $body); if (JUtility::sendMail($from, $sender, $email, $subject, $body, true) !== true) { JError::raiseNotice(500, JText::_('EMAIL_NOT_SENT')); } } }
<?php /** Ofuz Open Source version is released under the GNU Affero General Public License, please read the full license at: http://www.gnu.org/licenses/agpl-3.0.html **/ // Copyright 2008 - 2010 all rights reserved, SQLFusion LLC, info@sqlfusion.com /** Ofuz Open Source version is released under the GNU Affero General Public License, please read the full license at: http://www.gnu.org/licenses/agpl-3.0.html **/ $pageTitle = 'Ofuz :: Email Templates'; $Author = 'SQLFusion LLC'; $Keywords = 'Keywords for search engine'; $Description = 'Description for search engine'; $background_color = 'white'; include_once 'config.php'; include_once 'includes/ofuz_check_access.script.inc.php'; include_once 'includes/header.inc.php'; //$user_email_templ = new EmailTemplateUser(); if (isset($_GET['id']) && $_GET['id'] != '') { $do_auto_responder = new AutoResponder(); $do_auto_responder->getId($_GET['id']); $do_auto_responder->sessionPersistent('do_auto_responder', 'contacts.php', OFUZ_TTL); $user_email_templ = new EmailTemplateUser(); if (!$do_auto_responder->isOwner($_GET['id'])) { $access = false; } } else { $access = false; } ?> <script type="text/javascript"> //<![CDATA[ $(document).ready(function() { $("div[id^=templt]").hover(function(){$("div[id^=trashcan]",this).show("slow");},function(){$("div[id^=trashcan]",this).hide("slow");}); });
<?php /**COPYRIGHTS**/ // Copyright 2008 - 2010 all rights reserved, SQLFusion LLC, info@sqlfusion.com /**COPYRIGHTS**/ $do_auto_responder = new AutoResponder(); $do_auto_responder->sessionPersistent('do_auto_responder', 'contacts.php', OFUZ_TTL); ?> <script type="text/javascript"> //<![CDATA[ $(document).ready(function() { $("div[id^=autores]").hover(function(){$("div[id^=trashcan]",this).show("slow");},function(){$("div[id^=trashcan]",this).hide("slow");}); }); function addAutoResponder(){ $("#ptask_ctlbar_1").slideToggle("slow"); } //]]> </script> <?php if ($_SESSION['in_page_message'] != '') { $msg = new Message(); $msg->setContent(htmlentities($_SESSION['in_page_message'])); $msg->displayMessage(); } ?> <div class="banner60 pad020 text32"><?php echo _('Settings');
<?php /**COPYRIGHTS**/ // Copyright 2008 - 2010 all rights reserved, SQLFusion LLC, info@sqlfusion.com /**COPYRIGHTS**/ if (isset($plugin_item_value)) { //if (isset($_GET['id']) && $_GET['id'] !=''){ $do_auto_responder_detail = new AutoResponder(); $do_auto_responder_detail->getId($plugin_item_value); $do_auto_responder_detail->sessionPersistent('do_auto_responder_detail', 'contacts.php', OFUZ_TTL); $user_email_templ = new EmailTemplateUser(); if (!$_SESSION['do_auto_responder_detail']->isOwner($plugin_item_value)) { $access = false; } } else { $access = false; } ?> <script type="text/javascript"> //<![CDATA[ $(document).ready(function() { $("div[id^=autores_email]").hover(function(){$("div[id^=trashcan]",this).show("slow");},function(){$("div[id^=trashcan]",this).hide("slow");}); }); function fnInsertMergeField(merge){ if (merge.selectedIndex > 0) { var mergefield = merge[merge.selectedIndex].value; var textarea = dijit.byId("editor_bodyhtml"); textarea.attr("value", textarea.attr("value")+mergefield); merge.selectedIndex = 0; }
<?php /** Ofuz Open Source version is released under the GNU Affero General Public License, please read the full license at: http://www.gnu.org/licenses/agpl-3.0.html **/ // Copyright 2008 - 2010 all rights reserved, SQLFusion LLC, info@sqlfusion.com /** Ofuz Open Source version is released under the GNU Affero General Public License, please read the full license at: http://www.gnu.org/licenses/agpl-3.0.html **/ /** * A cron job script for sending the autoresponders. * Will get the autoresponders with the tags and will send the email to the contacts associated with the tag_name * @see class/Autoresponder.class.php */ include_once 'config.php'; $AutoResponder = new AutoResponder(); $AutoResponder->getAutoresponders(); if ($AutoResponder->getNumRows()) { while ($AutoResponder->next()) { $User = new User(); $User->getId($AutoResponder->iduser); $User->sessionPersistent('do_User', 'contacts.php', OFUZ_TTL); $email_template = new EmailTemplate(); $email_template->bodyhtml = nl2br(stripslashes($AutoResponder->bodyhtml)); $email_template->subject = $AutoResponder->subject; $email_template->senderemail = $User->email; $email_template->sendername = $User->firstname . ' ' . $User->lastname; $resp_name = $AutoResponder->resp_name; $Contact = new Contact(); $Contact->getContactsForAutoResponder($AutoResponder->iduser, $AutoResponder->tag_name, $AutoResponder->num_days_to_send); if ($Contact->getNumRows()) { while ($Contact->next()) { $values = array("idcontact" => $Contact->idcontact, "firstname" => $Contact->firstname, "lastname" => $Contact->lastname, "position" => $Contact->position, "company" => $Contact->company, "idtag" => $Contact->idtag, "resp_name" => $resp_name, "flag" => "unsubscribe_autoresponder"); $Contact->sendMessage($email_template, $values); echo '<br /> Email Sent to :' . $Contact->email_address;
<?php /** Ofuz Open Source version is released under the GNU Affero General Public License, please read the full license at: http://www.gnu.org/licenses/agpl-3.0.html **/ // Copyright 2008 - 2010 all rights reserved, SQLFusion LLC, info@sqlfusion.com /** Ofuz Open Source version is released under the GNU Affero General Public License, please read the full license at: http://www.gnu.org/licenses/agpl-3.0.html **/ $pageTitle = 'Ofuz :: Email Templates'; $Author = 'SQLFusion LLC'; $Keywords = 'Keywords for search engine'; $Description = 'Description for search engine'; $background_color = 'white'; include_once 'config.php'; include_once 'includes/ofuz_check_access.script.inc.php'; include_once 'includes/header.inc.php'; //$do_auto_responder = new AutoResponder(); if (isset($_GET['id']) && $_GET['id'] != '') { $do_auto_responder_detail = new AutoResponder(); $do_auto_responder_detail->getId($_GET['id']); $do_auto_responder_detail->sessionPersistent('do_auto_responder_detail', 'contacts.php', OFUZ_TTL); $user_email_templ = new EmailTemplateUser(); if (!$_SESSION['do_auto_responder_detail']->isOwner($_GET['id'])) { $access = false; } } else { $access = false; } ?> <script type="text/javascript"> //<![CDATA[ $(document).ready(function() { $("div[id^=autores_email]").hover(function(){$("div[id^=trashcan]",this).show("slow");},function(){$("div[id^=trashcan]",this).hide("slow");}); });