Atenção!

Este artigo contém código PHP e destina-se a desenvolvedores. Oferecemos este código como uma cortesia, mas não fornecemos suporte para personalizações de código ou desenvolvimento de terceiros.

Para orientação extra, consulte o tutorial do WPBeginner sobre como adicionar código personalizado.

Dispensar

Como Adicionar Cópia Oculta (Cco) às Notificações por E-mail

Would you like to secretly copy additional recipients on your form notification emails? While WPForms makes it easy to add CC recipients through the interface, adding BCC recipients requires a simple code snippet.

This guide will show you how to add BCC recipients to either specific forms or all your form notifications.

Configurando o Formulário

Let’s begin by creating a form and adding your fields. For the purpose of this tutorial, we’re going to have just a simple contact form.

There’s no need to adjust your Notifications tab as we’ll be adding the BCC through a snippet.

If you need any assistance in creating your form, please check out this tutorial.

Adding BCC Recipients

Now we’re going to add the snippet needed to BCC our accounts department with every form submission for the form ID 1000.

For any assistance in how to add snippets to your site, please check out this tutorial on adding code snippets.

Para um formulário específico

Para todos os formulários

Replace [email protected] with your desired BCC email address.

Once the snippet is implemented, any notification email triggered by form submissions—regardless of the form’s specificity—will include a blind carbon copy (BCC) to the designated email address of your choice.

That’s all it takes to incorporate BCC into your email notifications. Next, would you like to enhance your email notifications further? Check out our article on How to Make Phone Numbers a Link in Email Notifications for step-by-step guidance.

Filtro de Referência

wp_mail