<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Hook_mail on Jeremy Jackson</title>
    <link>https://new.tsjee.ru/tags/hook_mail/</link>
    <description>Recent content in Hook_mail on Jeremy Jackson</description>
    <generator>Hugo</generator>
    <language>ru</language>
    <lastBuildDate>Wed, 10 Aug 2011 14:25:31 +0000</lastBuildDate>
    <atom:link href="https://new.tsjee.ru/tags/hook_mail/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Отправка писем из модуля</title>
      <link>https://new.tsjee.ru/posts/2011-08-10-%D0%BE%D1%82%D0%BF%D1%80%D0%B0%D0%B2%D0%BA%D0%B0-%D0%BF%D0%B8%D1%81%D0%B5%D0%BC-%D0%B8%D0%B7-%D0%BC%D0%BE%D0%B4%D1%83%D0%BB%D1%8F/</link>
      <pubDate>Wed, 10 Aug 2011 14:25:31 +0000</pubDate>
      <guid>https://new.tsjee.ru/posts/2011-08-10-%D0%BE%D1%82%D0%BF%D1%80%D0%B0%D0%B2%D0%BA%D0%B0-%D0%BF%D0%B8%D1%81%D0%B5%D0%BC-%D0%B8%D0%B7-%D0%BC%D0%BE%D0%B4%D1%83%D0%BB%D1%8F/</guid>
      <description>&lt;p&gt;Для отправки писем из нашего абстрактного модуля нам понадобится реализация, hook_mail.&lt;/p&gt;&#xA;&lt;p&gt;hook_mail($key, &amp;amp;$message, $params),&lt;/p&gt;&#xA;&lt;p&gt;где&lt;/p&gt;&#xA;&lt;p&gt;$message = array(&#xA;&amp;lsquo;id&amp;rsquo; =&amp;gt; $module . &amp;lsquo;_&amp;rsquo; . $key,&#xA;&amp;lsquo;module&amp;rsquo; =&amp;gt; $module, //название нашего модуля&#xA;&amp;lsquo;key&amp;rsquo; =&amp;gt; $key, //идентификатор отправки&#xA;&amp;rsquo;to&amp;rsquo; =&amp;gt; $to, /&lt;em&gt;адрес отправителя, должен соответствовать RFC 2822 (например:&#xA;&lt;a href=&#34;mailto:user@example.com&#34;&gt;user@example.com&lt;/a&gt;&#xA;&lt;a href=&#34;mailto:user@example.com&#34;&gt;user@example.com&lt;/a&gt;, &lt;a href=&#34;mailto:anotheruser@example.com&#34;&gt;anotheruser@example.com&lt;/a&gt;&#xA;User&#xA;User , Another User )&lt;/em&gt;/&#xA;&amp;lsquo;from&amp;rsquo; =&amp;gt; isset($from) ? $from : $default_from, //адрес отправителя, по умолчанию адрес сайта&#xA;&amp;rsquo;language&amp;rsquo; =&amp;gt; $language,&#xA;&amp;lsquo;params&amp;rsquo; =&amp;gt; $params, //массив параметров для построения письма&#xA;&amp;lsquo;subject&amp;rsquo; =&amp;gt; &amp;lsquo;&amp;rsquo;, //тема письма&#xA;&amp;lsquo;body&amp;rsquo; =&amp;gt; array(), //массив строк тела письма&#xA;);&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
