Plugin Directory

Changeset 3441570


Ignore:
Timestamp:
01/17/2026 12:42:46 PM (2 months ago)
Author:
bgermann
Message:

import version 15.1

Location:
cforms2/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cforms2/trunk/Email.php

    r2353696 r3441570  
    187187        $header = $this->mail_header();
    188188        $body = $this->mail_body($this->body);
     189        $body_alt = $this->mail_body($this->body_alt);
    189190
    190191        // bail out
     
    196197            $to .= (($i != 0) ? ', ' : '' ) . $this->addr_fmt($this->to[$i]);
    197198        }
    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        }
    199203        $rt = wp_mail($to, $this->fix_header($this->subj), $body, $header, $this->up);
    200         remove_action('phpmailer_init', array($this, 'phpmailer_init'));
    201204
    202205        if (!$rt) {
     
    209212    }
    210213
    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 use
    219      */
    220     public function phpmailer_init($phpmailer) {
    221         $phpmailer->AltBody = $this->mail_body($this->body_alt);
    222 
    223     }
    224 
    225214    public function add_file($path) {
    226215        if (!is_file($path)) {
  • cforms2/trunk/cforms.php

    r3441543 r3441570  
    2121 * Description: cformsII is a customizable, flexible and powerful form plugin including simple spam protection, multi-step forms, role manager support and custom themes.
    2222 * Author: Oliver Seidel, Bastian Germann
    23  * Version: 15.0.10
    24  * Requires at least: 5.2
     23 * Version: 15.1
     24 * Requires at least: 6.9
    2525 * Text Domain: cforms2
    2626 */
    2727namespace Cforms2;
    2828
    29 define('CFORMS2_VERSION', '15.0.10');
     29define('CFORMS2_VERSION', '15.1');
    3030
    3131// Debug message handling.
  • cforms2/trunk/readme.txt

    r3441543 r3441570  
    1212This is a fork of cformsII, a highly customizable, flexible and powerful form builder plugin, covering a variety of use cases and features.
    1313
    14 Oliver, the original author, discontinued developing the plugin. This fork is an effort to keep it up to date.
    15 
    1614If 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.
    1715
     
    7068That 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/).
    7169
    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 
    7470= Why is the Form Settings page broken? =
    7571
     
    9187== Upgrade Notice ==
    9288
    93 = 15.0.10 =
     89= 15.1 =
    9490The 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.
    9591
    9692
    9793== Changelog ==
     94
     95= 15.1 =
     96
     97* bugfix:   get rid of wp_mail workaround
    9898
    9999= 15.0.10 =
Note: See TracChangeset for help on using the changeset viewer.