Skip to content

Commit

Permalink
Merge pull request #16 from dimonchoo/master
Browse files Browse the repository at this point in the history
Update Email.php
  • Loading branch information
snipworks authored Sep 6, 2020
2 parents 89bbd76 + 5a76100 commit 1e95ba7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Email.php
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,7 @@ public function getLogs()
*/
public function send()
{
$message = null;
$this->socket = fsockopen(
$this->getServer(),
$this->port,
Expand Down Expand Up @@ -346,7 +347,7 @@ public function send()

if (!empty($this->attachments)) {
$this->headers['Content-Type'] = 'multipart/mixed; boundary="mixed-' . $boundary . '"';
$message = '--mixed-' . $boundary . self::CRLF;
$message .= '--mixed-' . $boundary . self::CRLF;
$message .= 'Content-Type: multipart/alternative; boundary="alt-' . $boundary . '"' . self::CRLF . self::CRLF;
} else {
$this->headers['Content-Type'] = 'multipart/alternative; boundary="alt-' . $boundary . '"';
Expand Down

0 comments on commit 1e95ba7

Please sign in to comment.