Title: Fatal error
Last modified: January 10, 2023

---

# Fatal error

 *  Resolved [bigneno](https://wordpress.org/support/users/bigneno/)
 * (@bigneno)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/fatal-error-4334/)
 * After the last update the plugin causes a fatal error – a conflict with WP Mail
   SMTP plugin.
 * ![](https://i0.wp.com/i.imgur.com/QAiO7XN.png?ssl=1)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [jazzypuntnl](https://wordpress.org/support/users/jazzypuntnl/)
 * (@jazzypuntnl)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/fatal-error-4334/#post-16485675)
 * Here too. Fatal error and mails won’t send
 *  [Benjamin Danon](https://wordpress.org/support/users/bndn/)
 * (@bndn)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/fatal-error-4334/#post-16962615)
 * The fatal error is related to the parameter type added in [this commit](https://git.sr.ht/~dvko/wp-add-plaintext-email/commit/6193a586d2bb5a588bf344df03c6122728240bc6).
   You should remove it to fix the issue.
 *     ```wp-block-code
       -	public function set_plaintext_body( PHPMailer $phpmailer ) {
       +	public function set_plaintext_body( $phpmailer ) {
       ```
   
 * I use Icegram Express to send emails. I don’t know why the `$phpmailer` object
   is not typed as `PHPMailer`.
 *  Plugin Author [Danny van Kooten](https://wordpress.org/support/users/dvankooten/)
 * (@dvankooten)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-4334/#post-17214734)
 * Heh, not sure why that parameter type is fatal’ing. Perhaps it’s the `class_alias`
   when using a WordPress version that’s shipping the namespaced version of PHPMailer?
   
   Anyway, to simplify, I removed the type-hint in its entirety from version 1.2.0.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Fatal error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/add-plain-text-email.svg)
 * [Add Plain-Text Email](https://wordpress.org/plugins/add-plain-text-email/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/add-plain-text-email/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/add-plain-text-email/)
 * [Active Topics](https://wordpress.org/support/plugin/add-plain-text-email/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/add-plain-text-email/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/add-plain-text-email/reviews/)

 * 3 replies
 * 4 participants
 * Last reply from: [Danny van Kooten](https://wordpress.org/support/users/dvankooten/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/fatal-error-4334/#post-17214734)
 * Status: resolved