picu_email_bcc

This example will send a blind copy (BCC) of the mail your client gets, to the email address you specify.

Replace “my.cc@email.address” with your own address.

function my_picu_email_bcc( $bcc_address, $mail_context, $collection_id ) {
	if ( $mail_context == 'client_collection_new' ) {
		return 'my.cc@email.address';
	}
}
add_filter( 'picu_email_bcc', 'my_picu_email_bcc', 10, 3 );

picu_email_cc

Does the same as the example above, but using the CC field (which the client will see in the email header). Don’t forget to change the email address.

function my_picu_email_cc( $cc_address, $mail_context, $collection_id ) {
	if ( $mail_context == 'client_collection_new' ) {
		return 'my.cc@email.address';
	}
}
add_filter( 'picu_email_cc', 'my_picu_email_cc', 10, 3 );

$mail_context

In the examples above, we use the $mail_context to determine which email is being sent and only add our filter, if it is the mail to the client. Available $mail_context‘s at the time of writing are:

  • client_collection_new = mail to the client, when you send out a collection
  • client_delivery_new = mail to the client, when you send out a delivery collection with final images (Delivery Module is a premium feature available in picu Pro)
  • photographer_collection_approved = mail that the photographer gets sent, when a client approves a collection

Still having issues?

In your WordPress Admin go to picu > Settings > Debug Info and send the contents of this page and your questions to support@picu.io.