Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Update smtp.php
  • Loading branch information
danielkerr committed Feb 5, 2023
1 parent 281a685 commit 4e583e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions upload/system/library/mail/smtp.php
Expand Up @@ -77,13 +77,13 @@ public function send(): bool {
$header .= 'X-Mailer: PHP/' . phpversion() . PHP_EOL;
$header .= 'Content-Type: multipart/mixed; boundary="' . $boundary . '"' . PHP_EOL . PHP_EOL;

$message = '--' . $boundary . PHP_EOL;

if (empty($this->option['html'])) {
$message = '--' . $boundary . PHP_EOL;
$message .= 'Content-Type: text/plain; charset="utf-8"' . PHP_EOL;
$message .= 'Content-Transfer-Encoding: base64' . PHP_EOL . PHP_EOL;
$message .= base64_encode($this->option['text']) . PHP_EOL;
} else {
$message = '--' . $boundary . PHP_EOL;
$message .= 'Content-Type: multipart/alternative; boundary="' . $boundary . '_alt"' . PHP_EOL . PHP_EOL;
$message .= '--' . $boundary . '_alt' . PHP_EOL;
$message .= 'Content-Type: text/plain; charset="utf-8"' . PHP_EOL;
Expand Down

0 comments on commit 4e583e9

Please sign in to comment.