From 227bf8502739519c0febce5ed6d46cc3ac8916e6 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sun, 29 Jan 2006 19:06:00 +0000 Subject: [PATCH] We can now send multipart/html emails :) --- mail.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/mail.php b/mail.php index f129b47..8c79405 100644 --- a/mail.php +++ b/mail.php @@ -324,7 +324,7 @@ class Mail if ($this->sendhtml AND $this->fields['bodyhtml'][2] == true) { $boundary = 'ISSO-MULTIPART-' . $this->registry->modules['functions']->rand(10); - $this->headers .= "Content-Type: multipart/mixed; boundary=\"$boundary\"" . $delim; + $this->headers .= "Content-Type: multipart/alternative; boundary=\"$boundary\"" . $delim; $this->bodyhtml = $this->registry->modules['functions']->convert_line_breaks($this->bodyhtml, $delim); @@ -362,12 +362,10 @@ class Mail if (mail($address, $this->subject, $body, $this->headers, "-f {$this->from}")) { $this->registry->debug("email: sent -> good"); - return true; } else { $this->registry->debug("email: sent -> error"); - return false; } } } -- 2.43.5