17 require_once SQ_INCLUDE_PATH.
'/asset.inc';
18 require_once SQ_PACKAGES_PATH.
'/bulkmail/bulkmail_constant.inc';
19 require_once SQ_FUDGE_PATH.
'/general/file_system.inc';
20 require_once
'Mail.php';
21 require_once SQ_DATA_PATH.
'/private/conf/tools.inc';
22 @require_once
'Mail/mime.php';
50 $this->_ser_attrs = TRUE;
51 parent::__construct($assetid);
67 return $this->
attr(
'name');
84 SQ_LINK_TYPE_1 => Array(
85 'bulkmail_job' => Array(
90 SQ_LINK_TYPE_2 => Array(
91 'bulkmail_job' => Array(
96 SQ_LINK_NOTICE => Array(
97 'bulkmail_job' => Array(
119 $result = parent::canCreateLink($minor, $link_type, $exclusive);
120 if ($result !== TRUE)
return $result;
122 if (($minor instanceof
Bulkmail_Job) && ($link_type != SQ_LINK_NOTICE)) {
124 $bmail_link = $GLOBALS[
'SQ_SYSTEM']->am->getLinks($minor->id, SQ_SC_LINK_SIGNIFICANT,
'bulkmail_post_office', FALSE,
'minor');
125 if (!empty($bmail_link)) {
126 return translate(
'bm_warning_one_post_office_for_job');
149 $bmail_link = $GLOBALS[
'SQ_SYSTEM']->am->getLinks($minor->id, SQ_SC_LINK_SIGNIFICANT,
'bulkmail_post_office', FALSE,
'minor');
150 if (count($bmail_link) > 1) {
151 return translate(
'bm_warning_one_post_office_for_job');
155 return parent::canMoveLink($minor, $old_major, $link_type);
173 $value = parent::attr($name);
174 if($name ===
'server_details' ) {
175 $driver = array_get_index($value,
'driver',
'');
176 if($driver ===
'sendmail') {
177 if(SQ_TOOL_SENDMAIL_PATH !==
'') {
178 $value[
'sendmail_path'] = SQ_TOOL_SENDMAIL_PATH;
180 if(SQ_TOOL_SENDMAIL_ARGS !==
'') {
181 $value[
'sendmail_args'] = SQ_TOOL_SENDMAIL_ARGS;