Title: Email
Author: WordPress VIP Documentation
Published: March 16, 2023
Last modified: May 26, 2025

---

 1. [WordPress on VIP](https://docs.wpvip.com/wordpress-on-vip/)
 2. Email

#  Email

WordPress environments on the VIP Platform are configured to route transactional
email (e.g., password resets, user registration notifications) through WPVIP’s mail
servers.

By default, transactional emails are sent from the email address `donotreply@wpvip.
com`. It is possible to override the default sender’s email address and [send emails from a custom domain](https://docs.wpvip.com/wordpress-on-vip/email/send-from-custom-domain/)
instead.

The WordPress [`wp_mail()` function](https://developer.wordpress.org/reference/functions/wp_mail/)
can be used in custom code to send small amounts of emails to admins or other specific
email addresses. But to prevent issues with spam, abuse, or other unwanted communications,
any custom code using  `wp_mail()` should not generate (or allow users to generate)
email messages to site users or user-supplied email addresses.

## Limitations

 * VIP’s infrastructure for message delivery is not designed for the distribution
   of HTML emails, mailing list functionality, invitations to view or share content,
   notifications of site activity, or other messages generated in bulk. As a result,
   emails that are sent in bulk amounts through VIP’s infrastructure are likely 
   to be flagged as spam. To prevent this issue, [a third-party SMTP (Simple Mail Transfer Protocol) service or ESP (Email Service Provider) should be used for bulk emailing purposes](https://docs.wpvip.com/wordpress-on-vip/email/send-from-custom-domain/#external-email-service-providers).
 * The size of a message sent through WPVIP’s mail servers—after encoding—cannot
   exceed 100 MB.
 * The email address of the sender cannot be modified for emails that are sent by
   [the Jetpack Subscription feature](https://jetpack.com/support/subscriptions/).
 * [Convenience domains](https://docs.wpvip.com/domains/convenience-domains/) cannot
   be used for sending emails.

## Enable uploaded files to be sent as attachments

Media files that are uploaded to a WordPress site are not stored on the web container’s
filesystem. Instead, uploaded files are stored in [the VIP File System](https://docs.wpvip.com/vip-go-files-system/)
which is a separate object store. To send a file stored in the VIP File System as
an attachment in an email, the VIP constant `USE_VIP_PHPMAILER` must be defined 
as `true` in`[vip-config.php](https://docs.wpvip.com/wordpress-skeleton/vip-config-directory/)`.

/vip-config/vip-config.php

    ```lang-php
    define( 'USE_VIP_PHPMAILER', true );
    ```

## Email logs

Customers can optionally add an email log plugin to have more visibility into outgoing
emails. Email log plugins often provide the ability to verify that an email has 
been sent, where it has been set, when it was sent, and its content. When considering
plugin candidates for an email log plugin, follow the [guidelines for evaluating a third-party plugin](https://docs.wpvip.com/plugins/third-party-plugins/)
before adding or enabling the plugin in a production environment.

## Disable email

Use the `vip_block_wp_mail` filter to disable all outgoing emails from a WordPress
site, including transactional emails (e.g., password resets, user registration notifications).

To disable emails, add the following code to a file in `/client-mu-plugins`:

/client-mu-plugins/file.php

    ```lang-php
    add_filter( 'vip_block_wp_mail','__return_true' );
    ```

Last updated: May 26, 2025