Skip to content

Commit

Permalink
Update Email.php
Browse files Browse the repository at this point in the history
Erro on STDOUT when using only HTML option without other. "variable mssage is missing" because it is not exist :)
  • Loading branch information
dimonchoo authored Apr 5, 2020
1 parent 89bbd76 commit 5a76100
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 5a76100

Please sign in to comment.