Skip to content

Commit

Permalink
[mms] Fix sending BODY keyword when debugging and SMTP server does no…
Browse files Browse the repository at this point in the history
…t support 8BITMIME extension.
  • Loading branch information
slusarz committed Mar 9, 2015
1 parent 70eec46 commit cc32c1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion framework/Smtp/lib/Horde/Smtp.php
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ public function send($from, $to, $data, array $opts = array())
}
}

if (is_null($body) && $this->_debug->active) {
if (is_null($body) && $this->_debug->active && $this->data_8bit) {
/* Only output extended 7bit command if debug is active (it is
* default and does not need to be explicitly declared). */
$body = ' BODY=7BIT';
Expand Down
2 changes: 2 additions & 0 deletions framework/Smtp/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
</stability>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
* [mms] Fix sending BODY keyword when debugging and SMTP server does not support 8BITMIME extension.
* [jan] Add parameter for stream context settings (Request #13730).
* [jan] Fix notice if server doesn&apos;t support ENHANCEDSTATUSCODES.
* [mms] Add &apos;localhost&apos; parameter to Horde_Smtp (Request #13832).
Expand Down Expand Up @@ -484,6 +485,7 @@
<date>2015-01-07</date>
<license uri="http://www.horde.org/licenses/lgpl21">LGPL-2.1</license>
<notes>
* [mms] Fix sending BODY keyword when debugging and SMTP server does not support 8BITMIME extension.
* [jan] Add parameter for stream context settings (Request #13730).
* [jan] Fix notice if server doesn&apos;t support ENHANCEDSTATUSCODES.
* [mms] Add &apos;localhost&apos; parameter to Horde_Smtp (Request #13832).
Expand Down

0 comments on commit cc32c1c

Please sign in to comment.