Tag Info

New answers tagged

0

This is a pretty old question, but is still relevant. Anyway, @Milo definitely had the right idea. Here is what I use and it works great. This is very convenient when you want to create users, but prefer to keep your wordpress backend on lockdown. For example if you have a blog and prefer your content authors submit their work to you, this enables you ...


1

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="{URL of the logo}" /> tag into the Message body textarea.


0

Yes you can send the logo in hearer of the contact form 7 mail do the following step 1) You need to create html for your mail with header 2) Click on the "Use HTML content type" checkbox so it will add the HTML type in header it and send the HTML mail. Enjoy,,


1

Please add following condition. $mailSent = get_user_meta($us_id, 'mail_sent', true); if($mailSent){ update_user_meta($us_id, 'mail_sent', 'mail sent'); }else{ $borrower_mail=wp_mail($to, $subject, $body); }


5

The following version of wp_mail() is with the patch applied of @rmccue/@MattyRob in the ticket https://core.trac.wordpress.org/ticket/15448, refreshed for 4.2.2, which allows $message to be an array containing content-type keyed alternates: /** * Send mail, similar to PHP's mail * * A true return value does not automatically mean that the user received ...


0

After doing some research on google and woocommerce code i found the ans of the what i what. i have use following function for to send the mail to the user once order have been generated using the custom code in wordpress woo-commerce. WC()->mailer()->emails['WC_Email_Customer_Processing_Order']->trigger($orderId);


0

Have you tried to check/combine it with a wp_next_scheduled existance/work of your hook?


12

Using the PHPMailer class with an action callback: I did some digging into the PHPMailer class and found that it supports a custom action. Here's how the callback is activated with the doCallback() method in the class. There's also a PHPMailer test on GitHub using this feature via the callbackAction() callback. We can set it up in WordPress with: ...


1

According to this page it would suffice to use this code (to disable all notifications completely): if ( !function_exists('wp_new_user_notification') ) { function wp_new_user_notification( ) {} } It's pretty close to the given answer, but a little shorter. I thought of sharing this for what it's worth.



Top 50 recent answers are included