Title: PHP Mailer Issue
Last modified: December 12, 2024

---

# PHP Mailer Issue

 *  Resolved [Henry](https://wordpress.org/support/users/henrybaum/)
 * (@henrybaum)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/php-mailer-issue-2/)
 * We got this error today – Allowed memory size of 536870912 bytes exhausted (tried
   to allocate 16777224 bytes)
 * Before messing with htaccess etc and changing the memory limit, I’d like to see
   if maybe there’s another reason for it.
 * The critical error happened when trying to resend the new order email from the
   edit order screen. Emails are sending fine for new orders otherwise.
 * This was the error. We’re using WP Mail SMTP:
 * “error”: { “type”: 1, “file”: “/public_html/…/wp-includes/PHPMailer/SMTP.php”,“
   line”: 752 },
 * “backtrace”: [ { “file”: “/public_html/…/wp-content/plugins/woocommerce/includes/
   class-woocommerce.php”, “line”: 407,

Viewing 1 replies (of 1 total)

 *  Thread Starter [Henry](https://wordpress.org/support/users/henrybaum/)
 * (@henrybaum)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/php-mailer-issue-2/#post-18195702)
 * Never mind – this was an order that had massive PDFs attached to it. After removing
   the PDFs, sending worked.

Viewing 1 replies (of 1 total)

The topic ‘PHP Mailer Issue’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [Henry](https://wordpress.org/support/users/henrybaum/)
 * Last activity: [1 year, 6 months ago](https://wordpress.org/support/topic/php-mailer-issue-2/#post-18195702)
 * Status: resolved