Changeset 3442745
- Timestamp:
- 01/19/2026 06:51:09 PM (2 months ago)
- Location:
- cforms2/trunk
- Files:
-
- 4 edited
-
Email.php (modified) (4 diffs)
-
cforms.php (modified) (2 diffs)
-
lib_aux.php (modified) (1 diff)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
cforms2/trunk/Email.php
r3441570 r3442745 152 152 } 153 153 154 private function mail_header( ) {154 private function mail_header($boundary = '') { 155 155 $r = array(); 156 156 … … 164 164 $r[] = (count($this->replyto) > 0) ? $this->addr_add('Reply-to', $this->replyto) : ''; 165 165 166 $r[] = sprintf("Content-Type: %s", $this->content_type); 166 if ($boundary !== '') { 167 $r[] = sprintf('Content-Type: multipart/alternative; boundary="%s"', $boundary); 168 } else { 169 $r[] = sprintf('Content-Type: %s', $this->content_type); 170 } 167 171 return $r; 168 172 … … 185 189 } 186 190 187 $header = $this->mail_header();188 191 $body = $this->mail_body($this->body); 189 192 $body_alt = $this->mail_body($this->body_alt); … … 199 202 // Use multipart/alternative format if both HTML and plain text are available 200 203 if ($body_alt !== '') { 201 $body = array('html' => $body, 'text' => $body_alt); 202 } 203 $rt = wp_mail($to, $this->fix_header($this->subj), $body, $header, $this->up); 204 $boundary = 'cforms2_' . md5(uniqid()); 205 206 $header = $this->mail_header($boundary); 207 $mimebody = "--$boundary\r\n"; 208 $mimebody .= "Content-Type: text/plain; charset=" . get_bloginfo('charset') . "\r\n\r\n"; 209 $mimebody .= $body_alt . "\r\n\r\n"; 210 $mimebody .= "--$boundary\r\n"; 211 $mimebody .= "Content-Type: text/html; charset=" . get_bloginfo('charset') . "\r\n\r\n"; 212 $mimebody .= $body . "\r\n\r\n"; 213 $mimebody .= "--$boundary--"; 214 } else { 215 $header = $this->mail_header(); 216 $mimebody = $body; 217 } 218 219 $rt = wp_mail($to, $this->fix_header($this->subj), $mimebody, $header, $this->up); 204 220 205 221 if (!$rt) { -
cforms2/trunk/cforms.php
r3442099 r3442745 21 21 * Description: cformsII is a customizable, flexible and powerful form plugin including simple spam protection, multi-step forms, role manager support and custom themes. 22 22 * Author: Oliver Seidel, Bastian Germann 23 * Version: 15.1. 123 * Version: 15.1.2 24 24 * Requires at least: 6.9 25 25 * Text Domain: cforms2 … … 27 27 namespace Cforms2; 28 28 29 define('CFORMS2_VERSION', '15.1. 1');29 define('CFORMS2_VERSION', '15.1.2'); 30 30 31 31 // Debug message handling. -
cforms2/trunk/lib_aux.php
r2353696 r3442745 118 118 } elseif (strpos($k, 'Fieldset') !== false) { 119 119 $space = '-'; 120 $n = ( (($customspace * 2) + 2) - strlen(strip_tags($v))) / 2;120 $n = (int) (((($customspace * 2) + 2) - strlen(strip_tags($v))) / 2); 121 121 $n = ($n < 0) ? 0 : $n; 122 122 if (strlen(strip_tags($v)) < (($customspace * 2) - 2)) -
cforms2/trunk/readme.txt
r3442099 r3442745 87 87 == Upgrade Notice == 88 88 89 = 15.1. 1=89 = 15.1.2 = 90 90 The tracking database feature and its view are removed with cformsII 15.0+. Your data still exists in the database. Please have a look at CFDB plugin as a replacement. 91 91 92 92 93 93 == Changelog == 94 95 = 15.1.2 = 96 97 * bugfix: Construct multipart/alternative emails 94 98 95 99 = 15.1.1 =
Note: See TracChangeset
for help on using the changeset viewer.