How to change this simple code so that it sends the email notification after payment in WooCommerce?

How to change this code so that it sends the email notification after successfully payment in WooCommerce?

add_action( 'woocommerce_applied_coupon', 'custom_email_on_applied_coupon', 10, 1 ); function custom_email_on_applied_coupon( $  coupon_code ){     if( $  coupon_code == 'mycoupon' ){          $  to = "john@gmail.com";         $  subject = "Coupon $  coupon_code has been applied";         $  content = "         The coupon code $  coupon_code has been applied by a customer         ";          wp_mail( $  to, $  subject, $  content );     } } 

How to get a new mail alert notification popup for Postfix localhost mail in Ubuntu MATE 19.04

I have configured Postfix along with Mailutils to send and receive mails from localhost in Ubuntu MATE 19.04. I can read mails through terminal just fine.

Now how do I get new mail alert notification popups in system tray for incoming mails? Like upon a system boot and whenever new mail arrives afterwards. I’d like the notifications to stay there until dismissed. Many thanks.

Note: Just to be extra clear this setup is for “local only” mails.

Postfix version: 3.3.2-4 Mailutils version: 1:3.5-2build1 

How to get a new mail alert notification popup for Postfix localhost mail in Ubuntu MATE 19.04

I have configured Postfix along with Mailutils to send and receive mails from localhost in Ubuntu MATE 19.04. I can read mails through terminal just fine.

Now how do I get new mail alert notification popups in system tray for incoming mails? Like upon a system boot and whenever new mail arrives afterwards. I’d like the notifications to stay there until dismissed. Many thanks.

Note: Just to be extra clear this setup is for “local only” mails.

Postfix version: 3.3.2-4 Mailutils version: 1:3.5-2build1 

Notification panel vs banners

When do you normally add notifications to a slide-out panel vs using a banner for it?

By slide-out panel, this is similar to what I mean: enter image description here

By banner, this is similar to what I mean (but with a dismiss (x) option): enter image description here

In our app, we have the option to do both.

But I would like to add a notification that I’d really like to get a user’s attention on, but at the same time it’s also not crucial to their process.

Would it be more appropriate to add it to the slide-out panel? Or would it be better as a (dismissible) banner?

Digitalpush – Free Push notification platform for publishers and advertisers

DigitalPUSH allows you to re-engage visitors and drive them back to your website, from anywhere on the browser. Offering both manual and automated sending, real time reports, instant delivery and powerful segmentation, DigitalPUSH is the ideal solution to grow your website via push notifications.

EARN MONEY WITH YOUR SUBSCRIBERS(CPC/CPM/PER EACH NEW SUBSCRIBER)

Allow…

Digitalpush – Free Push notification platform for publishers and advertisers

Stack or use multiple notification toasts

I’ve seen it many times before where you’re on a website and you get a notification which comes in the form of a toast, if you perform the same action another toast will appear and it will push the previous toast slightly up the screen.

I’m wondering, would it be better to have multiple toasts displaying or whether it would be better that if another one got triggered, remove the previous one as soon as possible and enter the new one?

Inclusive notification scheme incorporated into design systems

It seems like the standard RED, YELLOW, GREEN and BLUE colours are used in notification schemes/styles in the most popular development frameworks like Material.io and Bootstrap.

Of course, colours shouldn’t be used by itself as a UI design element, but the standardization of the RED and GREEN combination in a colour palette reduces the effectiveness of other design elements to distinguish between different statuses in the notification scheme/style.

Are there examples of design systems or development frameworks where the notification scheme/style takes into consideration of the common issues:

  • Red and green colour blindness (and other forms of colour blindness)
  • A low contrast (i.e. bright or feint) yellow
  • simple and clear iconography to complement the notification colour scheme