This article covers general tips and tricks to keep in mind as you build email campaigns for various use cases and topics.
As you build your email campaign, it’s important to keep in mind how your email messaging is received across your various users and email service providers (ESPs). Here are some quick tips to keep in mind while building your content:
- When formatting your email, use inline style sheets as CSS.
- To use one email template for both mobile and desktop versions, keep the width under 500 pixels.
- Images uploaded to the email template must be less than 5MB. Supported formats include PNG, JPG, and GIF.
- Don’t set heights and widths for images as this will cause unnecessary white space in a degraded email.
divtags should not be used as most email clients do not support their use. Instead, use nested tables.
- Braze improves load times by using a global CDN to host all email images.
Implementing alternative text
Since spam filters watch for both an HTML and a plain text version of a message, utilizing plain text alternatives is a great way to lower your spam score. In addition, alternative text
(alt="") can serve to complement and in some cases stand in lieu of images included in your email body that may have been filtered out by a user’s email provider. Screen readers announce alt text to explain images, so this is an opportunity to use plain language to provide key information about an image.
Braze automatically adjusts inputted email addresses to trim any whitespace. Email addresses targeted via the Braze servers must be validated per the RFC 2822 standards. In addition to these standards, Braze does not accept the following characters and recognizes them as invalid. If an email is bounced, Braze marks the email as invalid and the subscription status is not changed.
Unaccepted characters outside of RFC standards
Setting from and reply-to addresses
When setting your “from” addresses, make sure your “from” email domain matches your sending domain (i.e.,
marketing.yourdomain.com). Failure to do this may result in SPF and DKIM misalignment. All reply-to emails can be set to your root domain.
Checking HTML details
Keep in mind that some HTML tags and attributes are not allowed as they may potentially let malicious code run in the browser.
Check out the following lists for HTML tags and attributes that aren’t allowed in your emails:
Expand for disallowed HTML tags
Expand for disallowed HTML attributes