Start now free!

Forums

Search  Users  Rules 
Close
Login:
Password:
Forgot your password?
Register
Login
 
Pages: 1
Reply
Generate a newsletter
 
Hi..,

I want to automatically load information from an iBlock in a newsletter. Say there is an iBlock called newsletter-items. The user of the Bitrix site adds 3 new articles in this Iblock, then go's to services/newsletter/Newsletter categories, presses "automatic generation". The template of the newsletter makes sure there is a header and footer, and in the middle the text/images are loaded from the iBlock newsletter-items.

Is this a scenario that is possible with Bitrix? And if so.. Is there any more information about it.

Maby with this kind of code:

Quote


<?$SUBSCRIBE_TEMPLATE_RESULT = $APPLICATION->IncludeComponent(
"bitrix:subscribe.news",
"",
Array(
"SITE_ID" => "s1",
"IBLOCK_TYPE" => "news",
"ID" => "",
"SORT_BY" => "ACTIVE_FROM",
"SORT_ORDER" => "DESC",
),
null,
array(
"HIDE_ICONS" => "Y",
)
);?></P>
<?

if($SUBSCRIBE_TEMPLATE_RESULT)
return array(
"SUBJECT"=>$SUBSCRIBE_TEMPLATE_RUBRIC["NAME"],
"BODY_TYPE"=>"html",
"CHARSET"=>"iso-8859-1",
"DIRECT_SEND"=>"Y",
"FROM_FIELD"=>$SUBSCRIBE_TEMPLATE_RUBRIC["FROM_FIELD"],
);
else
return false;




with kind regards,

Lars
 
Hi,

Unfortunately, I don't understand your task. If you add a new item to an iblock, it will be used in the content of a newsletter (if the template of this newsletter is set properly).

I mean, that all steps you described are a correct way to perform your task and it is not clear what is going wrong. Please advise.
 
Are you pertaining to an automated newsletter or something?
Always give it a smile..
Pages: 1
Reply
Users browsing this topic
Reply form
Enter your Post*
More
Files:
Drag and drop one or more files here
or select a file from your computer
Files:
Upload files
 

Bitrix Partner Network has more than 7,000 IT professionals who put their trust in our technologies and assist customers with installation and maintenance. All Bitrix Partners enjoy lucrative discounts on our products and services. Join our Partner Network now! Submitting a Bitrix Partner application is very easy and quick!
Partner Program
Free Online Training
Subscribe to Bitrix News