mail_transport - Version 0.1.0.2

Version Notes

Send magento emails by protocol SMTP or save them to a files.

Download this release

Release Info

Developer Marcin Frymark
Extension mail_transport
Version 0.1.0.2
Comparing to
See all releases


Code changes from version 0.1.0.1 to 0.1.0.2

app/code/community/Alekseon/AdminNotification/Helper/Data.php DELETED
@@ -1,10 +0,0 @@
1
- <?php
2
- /**
3
- * @author Marcin Frymark
4
- * @email contact@alekseon.com
5
- * @company Alekseon
6
- * @website www.alekseon.com
7
- */
8
- class Alekseon_AdminNotification_Helper_Data extends Mage_Core_Helper_Abstract
9
- {
10
- }
 
 
 
 
 
 
 
 
 
 
app/code/community/Alekseon/AdminNotification/etc/adminhtml.xml DELETED
@@ -1,31 +0,0 @@
1
- <?xml version="1.0"?>
2
- <!--
3
- /**
4
- * @author Marcin Frymark
5
- * @email contact@alekseon.com
6
- * @company Alekseon
7
- * @website www.alekseon.com
8
- */
9
- -->
10
- <config>
11
- <acl>
12
- <resources>
13
- <admin>
14
- <children>
15
- <system>
16
- <children>
17
- <config>
18
- <children>
19
- <alekseon_adminNotification translate="title">
20
- <title>Alekseon Notifications</title>
21
- <sort_order>10</sort_order>
22
- </alekseon_adminNotification>
23
- </children>
24
- </config>
25
- </children>
26
- </system>
27
- </children>
28
- </admin>
29
- </resources>
30
- </acl>
31
- </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Alekseon/AdminNotification/etc/config.xml DELETED
@@ -1,48 +0,0 @@
1
- <?xml version="1.0"?>
2
- <!--
3
- /**
4
- * @author Marcin Frymark
5
- * @email contact@alekseon.com
6
- * @company Alekseon
7
- * @website www.alekseon.com
8
- */
9
- -->
10
- <config>
11
- <modules>
12
- <Alekseon_AdminNotification>
13
- <version>0.1.0</version>
14
- </Alekseon_AdminNotification>
15
- </modules>
16
- <global>
17
- <models>
18
- <alekseon_adminNotification>
19
- <class>Alekseon_AdminNotification_Model</class>
20
- </alekseon_adminNotification>
21
- </models>
22
- <helpers>
23
- <alekseon_adminNotification>
24
- <class>Alekseon_AdminNotification_Helper</class>
25
- </alekseon_adminNotification>
26
- </helpers>
27
- </global>
28
- <adminhtml>
29
- <events>
30
- <controller_action_predispatch>
31
- <observers>
32
- <alekseon_adminNotification>
33
- <class>alekseon_adminNotification/observer</class>
34
- <method>preDispatch</method>
35
- </alekseon_adminNotification>
36
- </observers>
37
- </controller_action_predispatch>
38
- </events>
39
- </adminhtml>
40
- <default>
41
- <alekseon_adminNotification>
42
- <general>
43
- <enabled>1</enabled>
44
- <frequency>12</frequency>
45
- </general>
46
- </alekseon_adminNotification>
47
- </default>
48
- </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Alekseon/AdminNotification/etc/system.xml DELETED
@@ -1,74 +0,0 @@
1
- <?xml version="1.0"?>
2
- <!--
3
- /**
4
- * @author Marcin Frymark
5
- * @email contact@alekseon.com
6
- * @company Alekseon
7
- * @website www.alekseon.com
8
- */
9
- -->
10
- <config>
11
- <tabs>
12
- <alekseon>
13
- <label>Alekseon</label>
14
- <sort_order>450</sort_order>
15
- </alekseon>
16
- </tabs>
17
- <sections>
18
- <alekseon_adminNotification translate="label" module="alekseon_adminNotification">
19
- <label>Alekseon Notifications</label>
20
- <tab>alekseon</tab>
21
- <frontend_type>text</frontend_type>
22
- <sort_order>10</sort_order>
23
- <show_in_default>1</show_in_default>
24
- <show_in_website>0</show_in_website>
25
- <show_in_store>0</show_in_store>
26
- <groups>
27
- <hint>
28
- <frontend_model>alekseon_core/adminhtml_system_config_fieldset_alekseon</frontend_model>
29
- <sort_order>0</sort_order>
30
- <show_in_default>1</show_in_default>
31
- <show_in_website>1</show_in_website>
32
- <show_in_store>1</show_in_store>
33
- </hint>
34
- <general translate="label" module="alekseon_adminNotification">
35
- <label>General Options</label>
36
- <frontend_type>text</frontend_type>
37
- <sort_order>10</sort_order>
38
- <show_in_default>1</show_in_default>
39
- <show_in_website>0</show_in_website>
40
- <show_in_store>0</show_in_store>
41
- <fields>
42
- <enabled translate="label">
43
- <label>Enabled</label>
44
- <source_model>adminhtml/system_config_source_yesno</source_model>
45
- <frontend_type>select</frontend_type>
46
- <sort_order>10</sort_order>
47
- <show_in_default>1</show_in_default>
48
- <show_in_website>0</show_in_website>
49
- <show_in_store>0</show_in_store>
50
- </enabled>
51
- <frequency translate="label">
52
- <label>Update Frequency</label>
53
- <frontend_type>select</frontend_type>
54
- <source_model>adminhtml/system_config_source_notification_frequency</source_model>
55
- <sort_order>20</sort_order>
56
- <show_in_default>1</show_in_default>
57
- <show_in_website>0</show_in_website>
58
- <show_in_store>0</show_in_store>
59
- </frequency>
60
- <last_update translate="label">
61
- <label>Last Update</label>
62
- <frontend_type>label</frontend_type>
63
- <frontend_model>adminhtml/system_config_form_field_notification</frontend_model>
64
- <sort_order>30</sort_order>
65
- <show_in_default>1</show_in_default>
66
- <show_in_website>0</show_in_website>
67
- <show_in_store>0</show_in_store>
68
- </last_update>
69
- </fields>
70
- </general>
71
- </groups>
72
- </alekseon_adminNotification>
73
- </sections>
74
- </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Alekseon/Core/Block/Adminhtml/System/Config/Fieldset/Alekseon.php DELETED
@@ -1,11 +0,0 @@
1
- <?php
2
-
3
- class Alekseon_Core_Block_Adminhtml_System_Config_Fieldset_Alekseon extends Mage_Adminhtml_Block_Abstract implements Varien_Data_Form_Element_Renderer_Interface
4
- {
5
- public function render(Varien_Data_Form_Element_Abstract $element)
6
- {
7
- $alekseonUrl = Mage::helper('alekseon_core')->getAlekseonUrl();
8
- $createdAtImageUrl = $alekseonUrl . '/images/created_by_alekseon.png';
9
- return '<div><a href="' . $alekseonUrl . '" target="_blank"><img src="' . $createdAtImageUrl . '" alt="Created by Alekseon" title="Created by Alekseon" /></a></div>';
10
- }
11
- }
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Alekseon/Core/Helper/Data.php DELETED
@@ -1,19 +0,0 @@
1
- <?php
2
- /**
3
- * @author Marcin Frymark
4
- * @email contact@alekseon.com
5
- * @company Alekseon
6
- * @website www.alekseon.com
7
- */
8
- class Alekseon_Core_Helper_Data extends Mage_Core_Helper_Abstract
9
- {
10
- public function getAlekseonUrl()
11
- {
12
- return 'http://www.alekseon.com';
13
- }
14
-
15
- public function getAlekseonEmail()
16
- {
17
- return 'contact@alekseon.com';
18
- }
19
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Alekseon/Core/Model/NonDbCollection.php DELETED
@@ -1,139 +0,0 @@
1
- <?php
2
- /**
3
- * @author Marcin Frymark
4
- * @email contact@alekseon.com
5
- * @company Alekseon
6
- * @website www.alekseon.com
7
- */
8
- class Alekseon_Core_Model_NonDbCollection extends Varien_Data_Collection
9
- {
10
- protected $_filters = array();
11
-
12
- public function addFieldToFilter($attribute, $condition=null)
13
- {
14
- if (isset($condition['eq'])) {
15
- $value = $condition['eq'];
16
- $method = 'equal';
17
- } elseif (isset($condition['like'])) {
18
- $value = $condition['like'];
19
- $method = 'like';
20
- }
21
-
22
- $this->_filters[] = array(
23
- 'attribute' => $attribute,
24
- 'method' => $method,
25
- 'value' => $value,
26
- );
27
- }
28
-
29
- public function load($printQuery = false, $logQuery = false)
30
- {
31
- if ($this->isLoaded()) {
32
- return $this;
33
- }
34
-
35
- $this->_addFilterToCollection();
36
- $this->_sortCollection();
37
- $this->_renderLimit();
38
-
39
- $this->_setIsLoaded();
40
- return $this;
41
- }
42
-
43
- public function getSize()
44
- {
45
- if (is_null($this->_totalRecords)) {
46
- $this->_totalRecords = count($this->_items);
47
- }
48
- return intval($this->_totalRecords);
49
- }
50
-
51
- protected function _renderLimit()
52
- {
53
- if($this->_pageSize){
54
- $from = ($this->getCurPage() - 1) * $this->_pageSize;
55
- $to = ($this->getCurPage() - 1) * $this->_pageSize + $this->_pageSize - 1;
56
- $items = $this->_items;
57
- $this->_items = array();
58
- $counter = 0;
59
- foreach($items as $item) {
60
- if ($counter >= $from && $counter <= $to) {
61
- $this->addItem($item);
62
- }
63
- $counter++;
64
- }
65
- }
66
-
67
- return $this;
68
- }
69
-
70
- protected function _sortCollection()
71
- {
72
- usort($this->_items , array($this, '_doCompare'));
73
- return $this;
74
- }
75
-
76
- protected function _addFilterToCollection()
77
- {
78
- $items = $this->_items;
79
- $this->_items = array();
80
- foreach($items as $item) {
81
- if ($this->_filterItem($item)) {
82
- $this->addItem($item);
83
- }
84
- }
85
- }
86
-
87
- protected function _filterItem($item)
88
- {
89
- foreach ($this->_filters as $filter) {
90
- $method = $filter['method'];
91
- $attribute = $filter['attribute'];
92
- $itemValue = $item[$attribute];
93
-
94
- if (is_array($itemValue) && isset($itemValue['filter_condition'])) {
95
- $itemValue = $itemValue['filter_condition'];
96
- }
97
-
98
- if (!$this->$method($itemValue, $filter['value'])) {
99
- return false;
100
- }
101
- }
102
-
103
- return true;
104
- }
105
-
106
- protected function _doCompare($a, $b)
107
- {
108
- foreach($this->_orders as $column => $order) {
109
- $valueA = $a->getData($column);
110
- $valueB = $b->getData($column);
111
- if (is_array($valueA)) {
112
- $valueA = implode(',', $valueA);
113
- }
114
- if (is_array($valueB)) {
115
- $valueB = implode(',', $valueB);
116
- }
117
-
118
- $result = strcmp($valueA, $valueB);
119
-
120
- if (strtolower($order) == 'asc') {
121
- $result = -$result;
122
- }
123
-
124
- return $result;
125
- }
126
- return 0;
127
- }
128
-
129
- public function equal($filerValue, $needle)
130
- {
131
- return ($filerValue == $needle);
132
- }
133
-
134
- public function like($filerValue, $needle)
135
- {
136
- $needle = trim($needle, ' \'"%');
137
- return stristr($filerValue, $needle);
138
- }
139
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Alekseon/Core/etc/config.xml DELETED
@@ -1,33 +0,0 @@
1
- <?xml version="1.0"?>
2
- <!--
3
- /**
4
- * @author Marcin Frymark
5
- * @email contact@alekseon.com
6
- * @company Alekseon
7
- * @website www.alekseon.com
8
- */
9
- -->
10
- <config>
11
- <modules>
12
- <Alekseon_Core>
13
- <version>0.1.0</version>
14
- </Alekseon_Core>
15
- </modules>
16
- <global>
17
- <blocks>
18
- <alekseon_core>
19
- <class>Alekseon_Core_Block</class>
20
- </alekseon_core>
21
- </blocks>
22
- <models>
23
- <alekseon_core>
24
- <class>Alekseon_Core_Model</class>
25
- </alekseon_core>
26
- </models>
27
- <helpers>
28
- <alekseon_core>
29
- <class>Alekseon_Core_Helper</class>
30
- </alekseon_core>
31
- </helpers>
32
- </global>
33
- </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/code/community/Alekseon/MailTransport/Block/Adminhtml/System/Config/Form/Field/AlekseonLogo.php ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * @author Marcin Frymark
4
+ * @email contact@alekseon.com
5
+ * @company Alekseon
6
+ * @website www.alekseon.com
7
+ */
8
+ class Alekseon_MailTransport_Block_Adminhtml_System_Config_Form_Field_AlekseonLogo extends Mage_Adminhtml_Block_Abstract implements Varien_Data_Form_Element_Renderer_Interface
9
+ {
10
+ public function render(Varien_Data_Form_Element_Abstract $element)
11
+ {
12
+ $alekseonUrl = Mage::helper('alekseon_mailTransport')->getAlekseonUrl();
13
+ $createdAtImageUrl = $alekseonUrl . '/images/created_by_alekseon.png';
14
+ return '<div><a href="' . $alekseonUrl . '" target="_blank"><img src="' . $createdAtImageUrl . '" alt="Created by Alekseon" title="Created by Alekseon" /></a></div>';
15
+ }
16
+ }
app/code/community/Alekseon/{AdminNotification/Block/Adminhtml/System/Config/Form/Field/Notification.php → MailTransport/Block/Adminhtml/System/Config/Form/Field/AlekseonNotification.php} RENAMED
@@ -5,7 +5,7 @@
5
  * @company Alekseon
6
  * @website www.alekseon.com
7
  */
8
- class Alekseon_AdminNotification_Block_Adminhtml_System_Config_Form_Field_Notification extends Mage_Adminhtml_Block_System_Config_Form_Field
9
  {
10
  protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
11
  {
5
  * @company Alekseon
6
  * @website www.alekseon.com
7
  */
8
+ class Alekseon_MailTransport_Block_Adminhtml_System_Config_Form_Field_AlekseonNotification extends Mage_Adminhtml_Block_System_Config_Form_Field
9
  {
10
  protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element)
11
  {
app/code/community/Alekseon/MailTransport/Helper/Data.php CHANGED
@@ -7,4 +7,8 @@
7
  */
8
  class Alekseon_MailTransport_Helper_Data extends Mage_Core_Helper_Abstract
9
  {
 
 
 
 
10
  }
7
  */
8
  class Alekseon_MailTransport_Helper_Data extends Mage_Core_Helper_Abstract
9
  {
10
+ public function getAlekseonUrl()
11
+ {
12
+ return 'http://www.alekseon.com';
13
+ }
14
  }
app/code/community/Alekseon/{AdminNotification/Model → MailTransport/Model/AlekseonAdminNotification}/Feed.php RENAMED
@@ -5,7 +5,7 @@
5
  * @company Alekseon
6
  * @website www.alekseon.com
7
  */
8
- class Alekseon_AdminNotification_Model_Feed extends Mage_AdminNotification_Model_Feed
9
  {
10
  const XML_ENABLED_PATH = 'alekseon_adminNotification/general/enabled';
11
  const XML_FREQUENCY_PATH = 'alekseon_adminNotification/general/frequency';
@@ -16,7 +16,7 @@ class Alekseon_AdminNotification_Model_Feed extends Mage_AdminNotification_Model
16
  public function getFeedUrl()
17
  {
18
  if (is_null($this->_feedUrl)) {
19
- $this->_feedUrl = Mage::helper('alekseon_core')->getAlekseonUrl() . '/rss/magento_rss.xml';
20
  $query = '?utm_source=' . urlencode(Mage::getStoreConfig('web/unsecure/base_url'));
21
  $query .= '&utm_medium=' . urlencode('Magento Connect');
22
  $query .= '&utm_content=' . urlencode(Mage::getEdition() . ' ' . Mage::getVersion());
5
  * @company Alekseon
6
  * @website www.alekseon.com
7
  */
8
+ class Alekseon_MailTransport_Model_AlekseonAdminNotification_Feed extends Mage_AdminNotification_Model_Feed
9
  {
10
  const XML_ENABLED_PATH = 'alekseon_adminNotification/general/enabled';
11
  const XML_FREQUENCY_PATH = 'alekseon_adminNotification/general/frequency';
16
  public function getFeedUrl()
17
  {
18
  if (is_null($this->_feedUrl)) {
19
+ $this->_feedUrl = Mage::helper('alekseon_mailTransport')->getAlekseonUrl() . '/rss/magento_rss.xml';
20
  $query = '?utm_source=' . urlencode(Mage::getStoreConfig('web/unsecure/base_url'));
21
  $query .= '&utm_medium=' . urlencode('Magento Connect');
22
  $query .= '&utm_content=' . urlencode(Mage::getEdition() . ' ' . Mage::getVersion());
app/code/community/Alekseon/{AdminNotification/Model → MailTransport/Model/AlekseonAdminNotification}/Observer.php RENAMED
@@ -5,12 +5,12 @@
5
  * @company Alekseon
6
  * @website www.alekseon.com
7
  */
8
- class Alekseon_AdminNotification_Model_Observer
9
  {
10
  public function preDispatch(Varien_Event_Observer $observer)
11
  {
12
  if (Mage::getSingleton('admin/session')->isLoggedIn()) {
13
- $feedModel = Mage::getModel('alekseon_adminNotification/feed');
14
  $feedModel->checkUpdate();
15
  }
16
 
5
  * @company Alekseon
6
  * @website www.alekseon.com
7
  */
8
+ class Alekseon_MailTransport_Model_AlekseonAdminNotification_Observer
9
  {
10
  public function preDispatch(Varien_Event_Observer $observer)
11
  {
12
  if (Mage::getSingleton('admin/session')->isLoggedIn()) {
13
+ $feedModel = Mage::getModel('alekseon_mailTransport/alekseonAdminNotification_feed');
14
  $feedModel->checkUpdate();
15
  }
16
 
app/code/community/Alekseon/MailTransport/etc/adminhtml.xml CHANGED
@@ -16,6 +16,10 @@
16
  <children>
17
  <config>
18
  <children>
 
 
 
 
19
  <alekseon_mailTransport translate="title" module="alekseon_mailTransport">
20
  <title>Mail Transport</title>
21
  <sort_order>30</sort_order>
16
  <children>
17
  <config>
18
  <children>
19
+ <alekseon_adminNotification translate="title" module="alekseon_mailTransport">
20
+ <title>Alekseon Notifications</title>
21
+ <sort_order>10</sort_order>
22
+ </alekseon_adminNotification>
23
  <alekseon_mailTransport translate="title" module="alekseon_mailTransport">
24
  <title>Mail Transport</title>
25
  <sort_order>30</sort_order>
app/code/community/Alekseon/MailTransport/etc/config.xml CHANGED
@@ -1 +1 @@
1
- <?xml version="1.0"?>
2
  * @author Marcin Frymark
3
  * @email contact@alekseon.com
4
  * @company Alekseon
5
  * @website www.alekseon.com
6
  */
7
- ->
8
  <modules>
9
  <Alekseon_MailTransport>
10
  <version>0.1.0</version>
11
  </Alekseon_MailTransport>
12
  </modules>
13
  <global>
14
  <models>
15
  <alekseon_mailTransport>
16
  <class>Alekseon_MailTransport_Model</class>
17
  </alekseon_mailTransport>
18
  <core>
19
  <rewrite>
20
  <email_template>Alekseon_MailTransport_Model_Email_Template</email_template>
21
  </rewrite>
22
  </core>
23
  </models>
24
  <helpers>
25
  <alekseon_mailTransport>
26
  <class>Alekseon_MailTransport_Helper</class>
27
  </alekseon_mailTransport>
28
  </helpers>
29
  </global>
30
  <default>
31
  <alekseon_mailTransport>
32
  <general>
33
  <smtp_password backend_model="adminhtml/system_config_backend_encrypted"/>
34
  </general>
35
  </alekseon_mailTransport>
36
  </default>
 
37
  * @author Marcin Frymark
38
  * @email contact@alekseon.com
39
  * @company Alekseon
40
  * @website www.alekseon.com
41
  */
42
- ->
43
  <modules>
44
  <Alekseon_MailTransport>
45
  <version>0.1.0</version>
46
  </Alekseon_MailTransport>
47
  </modules>
48
  <global>
49
  <models>
50
  <alekseon_mailTransport>
51
  <class>Alekseon_MailTransport_Model</class>
52
  </alekseon_mailTransport>
53
  <core>
54
  <rewrite>
55
  <email_template>Alekseon_MailTransport_Model_Email_Template</email_template>
56
  </rewrite>
57
  </core>
58
  </models>
59
  <blocks>
60
  <alekseon_mailTransport>
61
  <class>Alekseon_MailTransport_Block</class>
62
  </alekseon_mailTransport>
63
  </blocks>
64
  <helpers>
65
  <alekseon_mailTransport>
66
  <class>Alekseon_MailTransport_Helper</class>
67
  </alekseon_mailTransport>
68
  </helpers>
69
  </global>
70
  <adminhtml>
71
  <events>
72
  <controller_action_predispatch>
73
  <observers>
74
  <alekseon_adminNotification>
75
  <class>alekseon_mailTransport/alekseonAdminNotification_observer</class>
76
  <method>preDispatch</method>
77
  </alekseon_adminNotification>
78
  </observers>
79
  </controller_action_predispatch>
80
  </events>
81
  </adminhtml>
82
  <default>
83
  <alekseon_adminNotification>
84
  <general>
85
  <enabled>1</enabled>
86
  <frequency>12</frequency>
87
  </general>
88
  </alekseon_adminNotification>
89
  <alekseon_mailTransport>
90
  <general>
91
  <smtp_password backend_model="adminhtml/system_config_backend_encrypted"/>
92
  </general>
93
  </alekseon_mailTransport>
94
  </default>
 
1
  * @author Marcin Frymark
2
  * @email contact@alekseon.com
3
  * @company Alekseon
4
  * @website www.alekseon.com
5
  */
 
6
  <modules>
7
  <Alekseon_MailTransport>
8
  <version>0.1.0</version>
9
  </Alekseon_MailTransport>
10
  </modules>
11
  <global>
12
  <models>
13
  <alekseon_mailTransport>
14
  <class>Alekseon_MailTransport_Model</class>
15
  </alekseon_mailTransport>
16
  <core>
17
  <rewrite>
18
  <email_template>Alekseon_MailTransport_Model_Email_Template</email_template>
19
  </rewrite>
20
  </core>
21
  </models>
22
  <helpers>
23
  <alekseon_mailTransport>
24
  <class>Alekseon_MailTransport_Helper</class>
25
  </alekseon_mailTransport>
26
  </helpers>
27
  </global>
28
  <default>
29
  <alekseon_mailTransport>
30
  <general>
31
  <smtp_password backend_model="adminhtml/system_config_backend_encrypted"/>
32
  </general>
33
  </alekseon_mailTransport>
34
  </default>
35
+ <?xml version="1.0"?>
36
  * @author Marcin Frymark
37
  * @email contact@alekseon.com
38
  * @company Alekseon
39
  * @website www.alekseon.com
40
  */
 
41
  <modules>
42
  <Alekseon_MailTransport>
43
  <version>0.1.0</version>
44
  </Alekseon_MailTransport>
45
  </modules>
46
  <global>
47
  <models>
48
  <alekseon_mailTransport>
49
  <class>Alekseon_MailTransport_Model</class>
50
  </alekseon_mailTransport>
51
  <core>
52
  <rewrite>
53
  <email_template>Alekseon_MailTransport_Model_Email_Template</email_template>
54
  </rewrite>
55
  </core>
56
  </models>
57
  <blocks>
58
  <alekseon_mailTransport>
59
  <class>Alekseon_MailTransport_Block</class>
60
  </alekseon_mailTransport>
61
  </blocks>
62
  <helpers>
63
  <alekseon_mailTransport>
64
  <class>Alekseon_MailTransport_Helper</class>
65
  </alekseon_mailTransport>
66
  </helpers>
67
  </global>
68
  <adminhtml>
69
  <events>
70
  <controller_action_predispatch>
71
  <observers>
72
  <alekseon_adminNotification>
73
  <class>alekseon_mailTransport/alekseonAdminNotification_observer</class>
74
  <method>preDispatch</method>
75
  </alekseon_adminNotification>
76
  </observers>
77
  </controller_action_predispatch>
78
  </events>
79
  </adminhtml>
80
  <default>
81
  <alekseon_adminNotification>
82
  <general>
83
  <enabled>1</enabled>
84
  <frequency>12</frequency>
85
  </general>
86
  </alekseon_adminNotification>
87
  <alekseon_mailTransport>
88
  <general>
89
  <smtp_password backend_model="adminhtml/system_config_backend_encrypted"/>
90
  </general>
91
  </alekseon_mailTransport>
92
  </default>
app/code/community/Alekseon/MailTransport/etc/system.xml CHANGED
@@ -15,6 +15,61 @@
15
  </alekseon>
16
  </tabs>
17
  <sections>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
18
  <alekseon_mailTransport translate="label" module="alekseon_mailTransport">
19
  <label>Mail Transport</label>
20
  <tab>alekseon</tab>
@@ -25,13 +80,13 @@
25
  <show_in_store>1</show_in_store>
26
  <groups>
27
  <hint>
28
- <frontend_model>alekseon_core/adminhtml_system_config_fieldset_alekseon</frontend_model>
29
  <sort_order>0</sort_order>
30
  <show_in_default>1</show_in_default>
31
  <show_in_website>1</show_in_website>
32
  <show_in_store>1</show_in_store>
33
  </hint>
34
- <general translate="label" module="alekseon_mailTransport">
35
  <label>General Settings</label>
36
  <frontend_type>text</frontend_type>
37
  <sort_order>10</sort_order>
15
  </alekseon>
16
  </tabs>
17
  <sections>
18
+ <alekseon_adminNotification translate="label" module="alekseon_mailTransport">
19
+ <label>Alekseon Notifications</label>
20
+ <tab>alekseon</tab>
21
+ <frontend_type>text</frontend_type>
22
+ <sort_order>10</sort_order>
23
+ <show_in_default>1</show_in_default>
24
+ <show_in_website>0</show_in_website>
25
+ <show_in_store>0</show_in_store>
26
+ <groups>
27
+ <hint>
28
+ <frontend_model>alekseon_mailTransport/adminhtml_system_config_form_field_alekseonLogo</frontend_model>
29
+ <sort_order>0</sort_order>
30
+ <show_in_default>1</show_in_default>
31
+ <show_in_website>1</show_in_website>
32
+ <show_in_store>1</show_in_store>
33
+ </hint>
34
+ <general translate="label">
35
+ <label>General Options</label>
36
+ <frontend_type>text</frontend_type>
37
+ <sort_order>10</sort_order>
38
+ <show_in_default>1</show_in_default>
39
+ <show_in_website>0</show_in_website>
40
+ <show_in_store>0</show_in_store>
41
+ <fields>
42
+ <enabled translate="label">
43
+ <label>Enabled</label>
44
+ <source_model>adminhtml/system_config_source_yesno</source_model>
45
+ <frontend_type>select</frontend_type>
46
+ <sort_order>10</sort_order>
47
+ <show_in_default>1</show_in_default>
48
+ <show_in_website>0</show_in_website>
49
+ <show_in_store>0</show_in_store>
50
+ </enabled>
51
+ <frequency translate="label">
52
+ <label>Update Frequency</label>
53
+ <frontend_type>select</frontend_type>
54
+ <source_model>adminhtml/system_config_source_notification_frequency</source_model>
55
+ <sort_order>20</sort_order>
56
+ <show_in_default>1</show_in_default>
57
+ <show_in_website>0</show_in_website>
58
+ <show_in_store>0</show_in_store>
59
+ </frequency>
60
+ <last_update translate="label">
61
+ <label>Last Update</label>
62
+ <frontend_type>label</frontend_type>
63
+ <frontend_model>adminhtml/system_config_form_field_notification</frontend_model>
64
+ <sort_order>30</sort_order>
65
+ <show_in_default>1</show_in_default>
66
+ <show_in_website>0</show_in_website>
67
+ <show_in_store>0</show_in_store>
68
+ </last_update>
69
+ </fields>
70
+ </general>
71
+ </groups>
72
+ </alekseon_adminNotification>
73
  <alekseon_mailTransport translate="label" module="alekseon_mailTransport">
74
  <label>Mail Transport</label>
75
  <tab>alekseon</tab>
80
  <show_in_store>1</show_in_store>
81
  <groups>
82
  <hint>
83
+ <frontend_model>alekseon_mailTransport/adminhtml_system_config_form_field_alekseonLogo</frontend_model>
84
  <sort_order>0</sort_order>
85
  <show_in_default>1</show_in_default>
86
  <show_in_website>1</show_in_website>
87
  <show_in_store>1</show_in_store>
88
  </hint>
89
+ <general translate="label">
90
  <label>General Settings</label>
91
  <frontend_type>text</frontend_type>
92
  <sort_order>10</sort_order>
app/etc/modules/Alekseon_AdminNotification.xml DELETED
@@ -1,21 +0,0 @@
1
- <?xml version="1.0"?>
2
- <!--
3
- /**
4
- * @author Marcin Frymark
5
- * @email contact@alekseon.com
6
- * @company Alekseon
7
- * @website www.alekseon.com
8
- */
9
- -->
10
- <config>
11
- <modules>
12
- <Alekseon_AdminNotification>
13
- <active>true</active>
14
- <codePool>community</codePool>
15
- <depends>
16
- <Mage_AdminNotification />
17
- <Alekseon_Core />
18
- </depends>
19
- </Alekseon_AdminNotification>
20
- </modules>
21
- </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
app/etc/modules/Alekseon_Core.xml DELETED
@@ -1,17 +0,0 @@
1
- <?xml version="1.0"?>
2
- <!--
3
- /**
4
- * @author Marcin Frymark
5
- * @email contact@alekseon.com
6
- * @company Alekseon
7
- * @website www.alekseon.com
8
- */
9
- -->
10
- <config>
11
- <modules>
12
- <Alekseon_Core>
13
- <active>true</active>
14
- <codePool>community</codePool>
15
- </Alekseon_Core>
16
- </modules>
17
- </config>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>mail_transport</name>
4
- <version>0.1.0.1</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
@@ -10,9 +10,9 @@
10
  <description>Send magento emails by protocol SMTP or save them to a files.</description>
11
  <notes>Send magento emails by protocol SMTP or save them to a files.</notes>
12
  <authors><author><name>Marcin Frymark</name><user>Alekseon</user><email>contact@alekseon.com</email></author></authors>
13
- <date>2014-03-13</date>
14
- <time>19:48:23</time>
15
- <contents><target name="magecommunity"><dir name="Alekseon"><dir name="MailTransport"><dir><dir name="Helper"><file name="Data.php" hash="4205979868b86789b2704c134630736a"/></dir><dir name="Model"><dir name="Email"><file name="Template.php" hash="b30c24c2853bb06f8c0ec3b470ad6951"/></dir><dir name="System"><dir name="Config"><dir name="Source"><file name="EncryptionProtocols.php" hash="71dfa161d404dc77be304c9946e7318e"/><file name="MailTransportTypes.php" hash="c60afbdae29ed7afbf016b6fef33f94c"/><file name="SmtpAuthModes.php" hash="6b30e126782cdc9bb93755c179c06fc4"/></dir></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="68a57d2d88b48e9238eddef0e6659d18"/><file name="config.xml" hash="d8a0279d4d1cd9076f8804ff52b2e7ab"/><file name="system.xml" hash="e257acfd5e5ec006f3d603d627e2811a"/></dir></dir></dir><dir name="AdminNotification"><dir><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="Notification.php" hash="0cf97c24e0e7497955ee17fb14daef52"/></dir></dir></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="d82dbd74204aace87e9f28be31ba98e6"/></dir><dir name="Model"><file name="Feed.php" hash="d25c0486febfecd06567e9d487ffde11"/><file name="Observer.php" hash="0bc915784005f5424bfa4940bb496d05"/></dir><dir name="etc"><file name="adminhtml.xml" hash="b63f6dd92e49def5499f7560bc1fa15c"/><file name="config.xml" hash="0ed69e4e9d2dbcfbd2cc24d2f79faf46"/><file name="system.xml" hash="7211e39b5159acca15740dfd391f69af"/></dir></dir></dir><dir name="Core"><dir><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Fieldset"><file name="Alekseon.php" hash="1d51aaf89f838ec44b2c2bbafb74a664"/></dir></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="8e117e0ba3c38786238baf66af89a127"/></dir><dir name="Model"><file name="NonDbCollection.php" hash="bdc61355076c70c8dfa97943015c101d"/></dir><dir name="etc"><file name="config.xml" hash="e92d2921b6d48fd4171637f99df3c05c"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Alekseon_MailTrasnport.xml" hash="e99dcf95b0657403cec683729a620450"/><file name="Alekseon_AdminNotification.xml" hash="9635261e9cedc0c69e49d20bcddfbc6e"/><file name="Alekseon_Core.xml" hash="c579cb3ce377e8c4ffa86ef00cb7c006"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>mail_transport</name>
4
+ <version>0.1.0.2</version>
5
  <stability>stable</stability>
6
  <license uri="http://www.opensource.org/licenses/osl-3.0.php">OSL v3.0</license>
7
  <channel>community</channel>
10
  <description>Send magento emails by protocol SMTP or save them to a files.</description>
11
  <notes>Send magento emails by protocol SMTP or save them to a files.</notes>
12
  <authors><author><name>Marcin Frymark</name><user>Alekseon</user><email>contact@alekseon.com</email></author></authors>
13
+ <date>2014-03-18</date>
14
+ <time>09:14:45</time>
15
+ <contents><target name="magecommunity"><dir name="Alekseon"><dir name="MailTransport"><dir><dir name="Block"><dir name="Adminhtml"><dir name="System"><dir name="Config"><dir name="Form"><dir name="Field"><file name="AlekseonLogo.php" hash="f51973c6b6547da6d3c4662a7fbb6566"/><file name="AlekseonNotification.php" hash="ddae7399512c66f732d7c7aea3c30bbd"/></dir></dir></dir></dir></dir></dir><dir name="Helper"><file name="Data.php" hash="c759be918e9ac8e2dc7bf486c03306a9"/></dir><dir name="Model"><dir name="AlekseonAdminNotification"><file name="Feed.php" hash="aaf8c072689181202e0c561beabc54b3"/><file name="Observer.php" hash="f44011324cad1c5284d0ea68a6267020"/></dir><dir name="Email"><file name="Template.php" hash="b30c24c2853bb06f8c0ec3b470ad6951"/></dir><dir name="System"><dir name="Config"><dir name="Source"><file name="EncryptionProtocols.php" hash="71dfa161d404dc77be304c9946e7318e"/><file name="MailTransportTypes.php" hash="c60afbdae29ed7afbf016b6fef33f94c"/><file name="SmtpAuthModes.php" hash="6b30e126782cdc9bb93755c179c06fc4"/></dir></dir></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="631199f9228dca4d207a2892a9036e30"/><file name="config.xml" hash="27f6dc26c25633eab2ebe34f946858fc"/><file name="system.xml" hash="f9446345598e4a3d4733ac854b3acb91"/></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Alekseon_MailTrasnport.xml" hash="e99dcf95b0657403cec683729a620450"/></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>