Skip to content

Instantly share code, notes, and snippets.

@MikeDacre
Created April 27, 2016 22:50
Show Gist options
  • Save MikeDacre/9906d6aa7c694c1e0d511861f0dc413f to your computer and use it in GitHub Desktop.
Save MikeDacre/9906d6aa7c694c1e0d511861f0dc413f to your computer and use it in GitHub Desktop.
Patch for Private Content mail function to make wp_mail() default when it is supposed to be.
--- public_api.php.orig 2016-04-27 15:45:37.237260404 -0700
+++ public_api.php 2016-04-27 15:44:53.737239447 -0700
@@ -37,7 +37,7 @@
// switch between PHPmailer and basic PHP mail() function
- if(get_option('pcma_use_basic_func')) {
+ if(! get_option('pcma_use_basic_func')) {
$headers = "From: ".$from_name." <".strip_tags($from_mail).">\r\n";
$headers .= "Reply-To: ". strip_tags($reply_to_mail) . "\r\n";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment