include/functions.php 1 location
|
@@ 578-580 (lines=3) @@
|
575 |
|
$attachmentAsattachmentCriteria->setOrder('ASC'); |
576 |
|
$attachmentObjs = $helper->getHandler('Attachment')->getObjects($attachmentAsattachmentCriteria, true); |
577 |
|
$attachmentsPath = []; |
578 |
|
foreach ($attachmentObjs as $attachment_id => $attachmentObj) { |
579 |
|
$attachmentsPath[] = XOOPS_UPLOAD_PATH . $helper->getConfig('xn_attachment_path') . $letter_id . '/' . $attachmentObj->getVar('attachment_name'); |
580 |
|
} |
581 |
|
|
582 |
|
$mail = new Xnewsletter\XnewsletterMailer(); |
583 |
|
$mail->CharSet = _CHARSET; //use xoops default character set |
include/task.inc.php 1 location
|
@@ 316-318 (lines=3) @@
|
313 |
|
$attachmentAsattachmentCriteria->setOrder('ASC'); |
314 |
|
$attachmentObjs = $helper->getHandler('Attachment')->getObjects($attachmentAsattachmentCriteria, true); |
315 |
|
$attachmentsPath = []; |
316 |
|
foreach ($attachmentObjs as $attachment_id => $attachmentObj) { |
317 |
|
$attachmentsPath[] = XOOPS_UPLOAD_PATH . $helper->getConfig('xn_attachment_path') . $letter_id . '/' . $attachmentObj->getVar('attachment_name'); |
318 |
|
} |
319 |
|
|
320 |
|
try { |
321 |
|
if (_XNEWSLETTER_ACCOUNTS_TYPE_VAL_PHP_SENDMAIL == $account_type) { |