Title: brainzilla's Replies | WordPress.org

---

# brainzilla

  [  ](https://wordpress.org/support/users/brainzilla/)

 *   [Profile](https://wordpress.org/support/users/brainzilla/)
 *   [Topics Started](https://wordpress.org/support/users/brainzilla/topics/)
 *   [Replies Created](https://wordpress.org/support/users/brainzilla/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/brainzilla/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/brainzilla/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/brainzilla/engagements/)
 *   [Favorites](https://wordpress.org/support/users/brainzilla/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Cerber Security, Anti-spam & Malware Scan] Problems when using PHPmailer](https://wordpress.org/support/topic/problems-when-using-phpmailer/)
 *  Thread Starter [brainzilla](https://wordpress.org/support/users/brainzilla/)
 * (@brainzilla)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/problems-when-using-phpmailer/#post-13401666)
 * This basically solved it for me:
    [https://wordpress.stackexchange.com/questions/344009/how-to-use-phpmailer-in-a-function-in-wordpress](https://wordpress.stackexchange.com/questions/344009/how-to-use-phpmailer-in-a-function-in-wordpress)
   Though I ended up using some globals to pass my parameters to PHPmailer, because
   of the bizarr way WP includes it all… (more elegant way would be to use closures).
 * Hope this helps anyone with similar problems.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Cerber Security, Anti-spam & Malware Scan] Problems when using PHPmailer](https://wordpress.org/support/topic/problems-when-using-phpmailer/)
 *  Thread Starter [brainzilla](https://wordpress.org/support/users/brainzilla/)
 * (@brainzilla)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/problems-when-using-phpmailer/#post-13392545)
 * Thanks for the hint!
    And you are right – I need to change how I include the 
   mailer in my script.

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