Rack_Jpmail - Version 0.1.6

Version Notes

0.1.6 Add Sender Name Encoding
0.1.5 Separate Text and HTML mail encode.
Add Return-Path
Add Reply-To
0.1.4 Fix system.xml
0.1.3 Fix bcc problem
Add Newsletter/Template.php
0.1.2 Fix Bug.

Download this release

Release Info

Developer Magento Core Team
Extension Rack_Jpmail
Version 0.1.6
Comparing to
See all releases


Code changes from version 0.1.5 to 0.1.6

app/code/community/Rack/Jpmail/Model/Email/Template.php CHANGED
@@ -43,13 +43,14 @@ class Rack_Jpmail_Model_Email_Template extends Mage_Core_Model_Email_Template
43
  if($this->isPlain()) {
44
  $mail->setBodyText(mb_convert_encoding($text, $textencode, 'utf-8'));
45
  $subject = mb_convert_encoding($this->getProcessedTemplateSubject($variables), $textencode, 'utf-8');
 
46
  } else {
47
  $mail->setBodyHTML(mb_convert_encoding($text, $htmlencode, 'utf-8'));
48
  $subject = mb_convert_encoding($this->getProcessedTemplateSubject($variables), $htmlencode, 'utf-8');
 
49
  }
50
 
51
  $mail->setSubject($subject);
52
- $mail->setFrom($this->getSenderEmail(), $this->getSenderName());
53
 
54
  try {
55
  $mail->send(); // Zend_Mail warning..
43
  if($this->isPlain()) {
44
  $mail->setBodyText(mb_convert_encoding($text, $textencode, 'utf-8'));
45
  $subject = mb_convert_encoding($this->getProcessedTemplateSubject($variables), $textencode, 'utf-8');
46
+ $mail->setFrom($this->getSenderEmail(), mb_encode_mimeheader(mb_convert_encoding($this->getSenderName(), $textencode, 'utf-8')));
47
  } else {
48
  $mail->setBodyHTML(mb_convert_encoding($text, $htmlencode, 'utf-8'));
49
  $subject = mb_convert_encoding($this->getProcessedTemplateSubject($variables), $htmlencode, 'utf-8');
50
+ $mail->setFrom($this->getSenderEmail(), mb_encode_mimeheader(mb_convert_encoding($this->getSenderName(), $htmlencode, 'utf-8')));
51
  }
52
 
53
  $mail->setSubject($subject);
 
54
 
55
  try {
56
  $mail->send(); // Zend_Mail warning..
app/code/community/Rack/Jpmail/Model/Newsletter/Template.php CHANGED
@@ -80,14 +80,14 @@ class Rack_Jpmail_Model_Newsletter_Template extends Mage_Newsletter_Model_Templa
80
  if ($this->isPlain()) {
81
  $mail->setBodyText(mb_encode_mimeheader(mb_convert_encoding($text, $textencode, 'utf-8')));
82
  $mail->setSubject(mb_encode_mimeheader(mb_convert_encoding($this->getProcessedTemplateSubject($variables), $textencode, 'utf-8')));
 
83
  }
84
  else {
85
  $mail->setBodyHTML(mb_encode_mimeheader(mb_convert_encoding($text, $htmlencode, 'utf-8')));
86
  $mail->setSubject(mb_encode_mimeheader(mb_convert_encoding($this->getProcessedTemplateSubject($variables), $htmlencode, 'utf-8')));
 
87
  }
88
 
89
- $mail->setFrom($this->getTemplateSenderEmail(), $this->getTemplateSenderName());
90
-
91
  try {
92
  $mail->send();
93
  $this->_mail = null;
80
  if ($this->isPlain()) {
81
  $mail->setBodyText(mb_encode_mimeheader(mb_convert_encoding($text, $textencode, 'utf-8')));
82
  $mail->setSubject(mb_encode_mimeheader(mb_convert_encoding($this->getProcessedTemplateSubject($variables), $textencode, 'utf-8')));
83
+ $mail->setFrom($this->getSenderEmail(), mb_encode_mimeheader(mb_convert_encoding($this->getTemplateSenderName(), $textencode, 'utf-8')));
84
  }
85
  else {
86
  $mail->setBodyHTML(mb_encode_mimeheader(mb_convert_encoding($text, $htmlencode, 'utf-8')));
87
  $mail->setSubject(mb_encode_mimeheader(mb_convert_encoding($this->getProcessedTemplateSubject($variables), $htmlencode, 'utf-8')));
88
+ $mail->setFrom($this->getSenderEmail(), mb_encode_mimeheader(mb_convert_encoding($this->getTemplateSenderName(), $htmlencode, 'utf-8')));
89
  }
90
 
 
 
91
  try {
92
  $mail->send();
93
  $this->_mail = null;
app/code/community/Rack/Jpmail/etc/config.xml CHANGED
@@ -2,7 +2,7 @@
2
  <config>
3
  <modules>
4
  <Rack_Jpmail>
5
- <version>0.1.5</version>
6
  </Rack_Jpmail>
7
  </modules>
8
  <global>
2
  <config>
3
  <modules>
4
  <Rack_Jpmail>
5
+ <version>0.1.6</version>
6
  </Rack_Jpmail>
7
  </modules>
8
  <global>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Rack_Jpmail</name>
4
- <version>0.1.5</version>
5
  <stability>stable</stability>
6
  <license>Open Software Lisence v3</license>
7
  <channel>community</channel>
@@ -9,7 +9,8 @@
9
  <summary>This module fix email encoding for multibyte environment.</summary>
10
  <description>This module can change mail encoding.
11
  And it can add Return-path &amp; Reply-to.</description>
12
- <notes>0.1.5 Separate Text and HTML mail encode.
 
13
  Add Return-Path
14
  Add Reply-To
15
  0.1.4 Fix system.xml
@@ -17,9 +18,9 @@ And it can add Return-path &amp; Reply-to.</description>
17
  Add Newsletter/Template.php
18
  0.1.2 Fix Bug.</notes>
19
  <authors><author><name>rack</name><user>auto-converted</user><email>rack990@gmail.com</email></author></authors>
20
- <date>2010-05-14</date>
21
- <time>15:43:17</time>
22
- <contents><target name="magelocale"><dir name="en_US"><file name="Rack_Jpmail.csv" hash="91bcabe183e348366bfc9665ec8b4303"/></dir><dir name="ja_JP"><file name="Rack_Jpmail.csv" hash="6323d98df9db69ac9c1da46c9e122525"/></dir></target><target name="mageetc"><dir name="modules"><file name="Rack_Jpmail.xml" hash="15330a682c67f43d2510c0e72991bc53"/></dir></target><target name="magecommunity"><dir name="Rack"><dir name="Jpmail"><dir name="etc"><file name="config.xml" hash="dceb5d36b874cbcb403f224fdae4e752"/><file name="system.xml" hash="aed912d9a95c44ecdde8e8ccdfb6c44d"/></dir><dir name="Helper"><file name="Data.php" hash="184fbc5691c3478047810b827c919dc9"/></dir><dir name="Model"><dir name="Email"><file name="Template.php" hash="113264f133b5ae7116748b3d06685d59"/></dir><dir name="Newsletter"><file name="Template.php" hash="b409c7d5141b2c6ad9b57445f6cf03e4"/></dir></dir></dir></dir></target></contents>
23
  <compatible/>
24
  <dependencies/>
25
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Rack_Jpmail</name>
4
+ <version>0.1.6</version>
5
  <stability>stable</stability>
6
  <license>Open Software Lisence v3</license>
7
  <channel>community</channel>
9
  <summary>This module fix email encoding for multibyte environment.</summary>
10
  <description>This module can change mail encoding.
11
  And it can add Return-path &amp; Reply-to.</description>
12
+ <notes>0.1.6 Add Sender Name Encoding
13
+ 0.1.5 Separate Text and HTML mail encode.
14
  Add Return-Path
15
  Add Reply-To
16
  0.1.4 Fix system.xml
18
  Add Newsletter/Template.php
19
  0.1.2 Fix Bug.</notes>
20
  <authors><author><name>rack</name><user>auto-converted</user><email>rack990@gmail.com</email></author></authors>
21
+ <date>2010-06-19</date>
22
+ <time>04:22:13</time>
23
+ <contents><target name="magelocale"><dir name="en_US"><file name="Rack_Jpmail.csv" hash="91bcabe183e348366bfc9665ec8b4303"/></dir><dir name="ja_JP"><file name="Rack_Jpmail.csv" hash="6323d98df9db69ac9c1da46c9e122525"/></dir></target><target name="mageetc"><dir name="modules"><file name="Rack_Jpmail.xml" hash="15330a682c67f43d2510c0e72991bc53"/></dir></target><target name="magecommunity"><dir name="Rack"><dir name="Jpmail"><dir name="etc"><file name="config.xml" hash="1f6a29dca6f9c3162355e643cccb4019"/><file name="system.xml" hash="aed912d9a95c44ecdde8e8ccdfb6c44d"/></dir><dir name="Helper"><file name="Data.php" hash="184fbc5691c3478047810b827c919dc9"/></dir><dir name="Model"><dir name="Email"><file name="Template.php" hash="4eb4956e3f010997c2c270e4d0d05afc"/></dir><dir name="Newsletter"><file name="Template.php" hash="745f50e859d6118566269e5636226502"/></dir></dir></dir></dir></target></contents>
24
  <compatible/>
25
  <dependencies/>
26
  </package>