ArtsOnIT_AdvancedSmtp - Version 0.1.7

Version Notes

N/A

Download this release

Release Info

Developer Magento Core Team
Extension ArtsOnIT_AdvancedSmtp
Version 0.1.7
Comparing to
See all releases


Code changes from version 0.1.6 to 0.1.7

app/code/community/Mage/Advancedsmtp/Helper/Data.php CHANGED
@@ -12,7 +12,7 @@ class Mage_Advancedsmtp_Helper_Data extends Mage_Core_Helper_Abstract
12
{
13
public function getTransport()
14
{
15
- $config = array(
16
'port' => Mage::getStoreConfig('advancedsmtp/settings/port')
17
);
18
$config_auth = Mage::getStoreConfig('advancedsmtp/settings/auth');
@@ -22,9 +22,9 @@ class Mage_Advancedsmtp_Helper_Data extends Mage_Core_Helper_Abstract
22
$config['username'] = Mage::getStoreConfig('advancedsmtp/settings/username');
23
$config['password'] = Mage::getStoreConfig('advancedsmtp/settings/password');
24
}
25
- if (Mage::getStoreConfig('advancedsmtp/settings/ssl'))
26
{
27
- $config['ssl'] = 'tls';
28
}
29
$transport = new Zend_Mail_Transport_Smtp(Mage::getStoreConfig('advancedsmtp/settings/host'), $config);
30
return $transport;
12
{
13
public function getTransport()
14
{
15
+ $config = array(
16
'port' => Mage::getStoreConfig('advancedsmtp/settings/port')
17
);
18
$config_auth = Mage::getStoreConfig('advancedsmtp/settings/auth');
22
$config['username'] = Mage::getStoreConfig('advancedsmtp/settings/username');
23
$config['password'] = Mage::getStoreConfig('advancedsmtp/settings/password');
24
}
25
+ if (Mage::getStoreConfig('advancedsmtp/settings/ssl')!= 0)
26
{
27
+ $config['ssl'] = (Mage::getStoreConfig('advancedsmtp/settings/ssl') == 1) ? 'tls' :'ssl';
28
}
29
$transport = new Zend_Mail_Transport_Smtp(Mage::getStoreConfig('advancedsmtp/settings/host'), $config);
30
return $transport;
app/code/community/Mage/Advancedsmtp/Model/Config/Source/Ssl.php ADDED
@@ -0,0 +1,13 @@
1
+ <?php
2
+
3
+ class Mage_AdvancedSmtp_Model_Config_Source_Ssl
4
+ {
5
+ public function toOptionArray()
6
+ {
7
+ return array(
8
+ array('value'=>0, 'label'=>'No'),
9
+ array('value'=>1, 'label'=>'Yes (tls)'),
10
+ array('value'=>2, 'label'=>'Yes (ssl)')
11
+ );
12
+ }
13
+ }
app/code/community/Mage/Advancedsmtp/etc/config.xml CHANGED
@@ -66,6 +66,7 @@
66
<ssl>0</ssl>
67
<host>localhost</host>
68
<port>25</port>
69
</settings>
70
</advancedsmtp>
71
</default>
66
<ssl>0</ssl>
67
<host>localhost</host>
68
<port>25</port>
69
+ <ssltype></ssltype>
70
</settings>
71
</advancedsmtp>
72
</default>
app/code/community/Mage/Advancedsmtp/etc/system.xml CHANGED
@@ -67,15 +67,16 @@
67
<show_in_website>1</show_in_website>
68
<show_in_store>0</show_in_store>
69
</port>
70
- <ssl translate="label">
71
<label>Use SSL</label>
72
<frontend_type>select</frontend_type>
73
- <source_model>adminhtml/system_config_source_yesno</source_model>
74
<sort_order>7</sort_order>
75
<show_in_default>1</show_in_default>
76
<show_in_website>1</show_in_website>
77
<show_in_store>0</show_in_store>
78
</ssl>
79
</fields>
80
</settings>
81
</groups>
67
<show_in_website>1</show_in_website>
68
<show_in_store>0</show_in_store>
69
</port>
70
+ <ssl translate="label">
71
<label>Use SSL</label>
72
<frontend_type>select</frontend_type>
73
+ <source_model>advancedsmtp/config_source_ssl</source_model>
74
<sort_order>7</sort_order>
75
<show_in_default>1</show_in_default>
76
<show_in_website>1</show_in_website>
77
<show_in_store>0</show_in_store>
78
</ssl>
79
+
80
</fields>
81
</settings>
82
</groups>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
<?xml version="1.0"?>
2
<package>
3
<name>ArtsOnIT_AdvancedSmtp</name>
4
- <version>0.1.6</version>
5
<stability>stable</stability>
6
<license>N/A</license>
7
<channel>community</channel>
@@ -10,9 +10,9 @@
10
<description>Provide the support for all the smtp server (Autentication, SSL)</description>
11
<notes>N/A</notes>
12
<authors><author><name>Luca</name><user>auto-converted</user><email>me@ziq.it</email></author></authors>
13
- <date>2008-08-05</date>
14
- <time>12:51:19</time>
15
- <contents><target name="magecommunity"><dir name="Mage"><dir name="Advancedsmtp"><dir name="etc"><file name="config.xml" hash="6f90c9f11843eec1d576e0e280a1dbfe"/><file name="system.xml" hash="99e751cdcdb75c42385e3d516f5ebacc"/></dir><dir name="Helper"><file name="Data.php" hash="cbe9dd2a4a39b1e855e1264836bae4e2"/></dir><dir name="Model"><dir name="Config"><dir name="Source"><file name="Auth.php" hash="153d45ac9508e4d53a77926c31af07ea"/></dir></dir><dir name="Email"><file name="Template.php" hash="cf435dec38a9019c2756065f31281b0b"/></dir><file name="Email.php" hash="3284938017185e0c1c26f5b79dfca6dd"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Mage_AdvancedSmtp.xml" hash="7966ef038d36e6cd38a21eb394a6b92f"/></dir></target></contents>
16
<compatible/>
17
<dependencies/>
18
</package>
1
<?xml version="1.0"?>
2
<package>
3
<name>ArtsOnIT_AdvancedSmtp</name>
4
+ <version>0.1.7</version>
5
<stability>stable</stability>
6
<license>N/A</license>
7
<channel>community</channel>
10
<description>Provide the support for all the smtp server (Autentication, SSL)</description>
11
<notes>N/A</notes>
12
<authors><author><name>Luca</name><user>auto-converted</user><email>me@ziq.it</email></author></authors>
13
+ <date>2008-10-20</date>
14
+ <time>18:32:47</time>
15
+ <contents><target name="magecommunity"><dir name="Mage"><dir name="Advancedsmtp"><dir name="etc"><file name="config.xml" hash="1d85c526a41c29693db623a5fc8dd5e4"/><file name="system.xml" hash="c7c69e1954e24836e3ad5b76e86cc454"/></dir><dir name="Helper"><file name="Data.php" hash="c05de4a4aa9524d5e7f58be8c00538e4"/></dir><dir name="Model"><dir name="Config"><dir name="Source"><file name="Auth.php" hash="153d45ac9508e4d53a77926c31af07ea"/><file name="Ssl.php" hash="11e192713f1a20cd9bb4f0aa9ccbc607"/></dir></dir><dir name="Email"><file name="Template.php" hash="cf435dec38a9019c2756065f31281b0b"/></dir><file name="Email.php" hash="3284938017185e0c1c26f5b79dfca6dd"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Mage_AdvancedSmtp.xml" hash="7966ef038d36e6cd38a21eb394a6b92f"/></dir></target></contents>
16
<compatible/>
17
<dependencies/>
18
</package>