Adding second Email address for WP user notifications
Not a WP specific solution, but you can usually set-up an alias/forwarder in your email system that sends a copy to both people. e.g. [email protected] [email protected] etc.
Not a WP specific solution, but you can usually set-up an alias/forwarder in your email system that sends a copy to both people. e.g. [email protected] [email protected] etc.
The default wp_mail() function is pluggable – meaning it can be entirely overridden by plugins. In the absence of any external influence, though, the “from” settings for the email address are hard-coded. Here’s a snippet from /wp-includes/pluggable.php: // From email and name // If we don’t have a name from the input headers if ( … Read more
I’ll guess that you’re testing this by entering your admin email address. Have a look at the Codex page for email_exists(): If the E-mail exists, function returns the ID of the user to whom the E-mail is registered. If you’re entering the email address of the first user created for a site, the user ID … Read more
You can add your own logo to the message like this. Check “Use HTML content type” box in the Mail or Mail (2) section. Place <img src=”https://wordpress.stackexchange.com/questions/192218/{URL of the logo}” /> tag into the Message body textarea.
You can solve it like this: use wp_schedule_event to check if any user needs to get the mail if yes, send the mail containing a link like yoursite.com/?user_id=99&myaction=yes&mytoken=sometokenforsecurity Save that token to the user´s user_meta add_user_meta( $user_id, ‘mytoken’, $token, true ) In your case you obviously need a second link with action=no or whatever you … Read more
I have found the line I need to edit I think <p><?php printf( __( ‘You have received an order from %s. The order is as follows:’, ‘woocommerce’ ), $order->get_formatted_billing_full_name() ); ?></p> would that change to <p><?php printf( __( ‘You have received an order from %s. The order is as follows:’, ‘woocommerce’ ), $order->get_user() ); ?></p>
Yes, you can add your own custom validation. More info here. Here’s a working and tested example for your situation: Use [text* your-website] inside your contact form 7 form. Add this snippet to your theme’s functions.php, use a child-theme! add_filter( ‘wpcf7_validate_text*’, ‘custom_website_validation_filter’, 20, 2 ); function custom_website_validation_filter( $result, $tag ) { if ( $tag->name == … Read more
The correct way is to apply a filter to wp_mail_from and wp_mail_from_name. You would think that using the $headers would work and normally it would but there are many plugins that filter and then don’t take off their filter when they have sent their email which then leaves those details on the email for the … Read more
You can change the email address with the wp_mail_from filter: add_filter( ‘wp_mail_from’, function() { return ‘[email protected]’; } );
Try Postie. http://wordpress.org/extend/plugins/postie/ It has lots of features (including handling attachments and inline images)