Changeset 3441570
- Timestamp:
- 01/17/2026 12:42:46 PM (2 months ago)
- Location:
- cforms2/trunk
- Files:
-
- 3 edited
-
Email.php (modified) (3 diffs)
-
cforms.php (modified) (1 diff)
-
readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cforms2/trunk/Email.php
r2353696 r3441570 187 187 $header = $this->mail_header(); 188 188 $body = $this->mail_body($this->body); 189 $body_alt = $this->mail_body($this->body_alt); 189 190 190 191 // bail out … … 196 197 $to .= (($i != 0) ? ', ' : '' ) . $this->addr_fmt($this->to[$i]); 197 198 } 198 add_action('phpmailer_init', array($this, 'phpmailer_init')); 199 // Use multipart/alternative format if both HTML and plain text are available 200 if ($body_alt !== '') { 201 $body = array('html' => $body, 'text' => $body_alt); 202 } 199 203 $rt = wp_mail($to, $this->fix_header($this->subj), $body, $header, $this->up); 200 remove_action('phpmailer_init', array($this, 'phpmailer_init'));201 204 202 205 if (!$rt) { … … 209 212 } 210 213 211 /**212 * Sets the line ending and the multipart/alternative text/plain part.213 * This is only functional if the built-in wp_mail function is not replaced.214 *215 * TODO When https://core.trac.wordpress.org/ticket/15448 is resolved,216 * use wp_mail's new multipart detection and do not depend on PHPMailer.217 *218 * @param PHPMailer $phpmailer the object in use219 */220 public function phpmailer_init($phpmailer) {221 $phpmailer->AltBody = $this->mail_body($this->body_alt);222 223 }224 225 214 public function add_file($path) { 226 215 if (!is_file($path)) { -
cforms2/trunk/cforms.php
r3441543 r3441570 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. 0.1024 * Requires at least: 5.223 * Version: 15.1 24 * Requires at least: 6.9 25 25 * Text Domain: cforms2 26 26 */ 27 27 namespace Cforms2; 28 28 29 define('CFORMS2_VERSION', '15. 0.10');29 define('CFORMS2_VERSION', '15.1'); 30 30 31 31 // Debug message handling. -
cforms2/trunk/readme.txt
r3441543 r3441570 12 12 This is a fork of cformsII, a highly customizable, flexible and powerful form builder plugin, covering a variety of use cases and features. 13 13 14 Oliver, the original author, discontinued developing the plugin. This fork is an effort to keep it up to date.15 16 14 If you want to use plugin versions older than 14.6.3, you should rename the directory containing the plugin from "cforms2" to "cforms". But bear in mind that old versions should not be used in public systems, because they contain [known serious vulnerabilities](https://wpvulndb.com/plugins/cforms) that are exploited in the wild. 17 15 … … 70 68 That function was removed. The WordPress function [wp_mail](https://codex.wordpress.org/Function_Reference/wp_mail) is used for mails now, which makes use of built-in PHPMailer by default. If you want to configure it to use an external SMTP server, use an appropriate plugin, e.g. [WP Mail SMTP](https://wordpress.org/plugins/wp-mail-smtp/). 71 69 72 If wp_mail is replaced by some plugin, multipart/alternative emails may not be sent properly, which is the case with e.g. Postman SMTP Mailer/Email Log.73 74 70 = Why is the Form Settings page broken? = 75 71 … … 91 87 == Upgrade Notice == 92 88 93 = 15. 0.10=89 = 15.1 = 94 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. 95 91 96 92 97 93 == Changelog == 94 95 = 15.1 = 96 97 * bugfix: get rid of wp_mail workaround 98 98 99 99 = 15.0.10 =
Note: See TracChangeset
for help on using the changeset viewer.