# Enable Multi-Part Message Format

**URL:** <https://community.gravityforms.com/t/enable-multi-part-message-format/2773>\
**Category:** General Discussion\
**Tags:** notifications, multipart, feature-request, spam\
**Created:** [September 17, 2019, 7:23pm UTC](https://community.gravityforms.com/t/enable-multi-part-message-format/2773 "2019-09-17T19:23:46Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tylerg](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/tylerg/32/1027_2.png) [@tylerg](https://community.gravityforms.com/u/tylerg)\
**Post date:** [September 17, 2019, 7:23pm UTC](https://community.gravityforms.com/t/enable-multi-part-message-format/2773/1 "2019-09-17T19:23:46Z")

</div>

It looks as though it is best practice to include a text/plain version of the message to help with deliverability but I’m not seeing where to enable multipart format. The only documentation for Gravity Forms that mentions multipart is here: [https://docs.gravityforms.com/gform\_notification/#4-change-the-message-format](https://docs.gravityforms.com/gform_notification/#4-change-the-message-format)

Does Gravity Forms allow multipart to be enabled to help with spam filters?

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [September 17, 2019, 8:14pm UTC](https://community.gravityforms.com/t/enable-multi-part-message-format/2773/2 "2019-09-17T20:14:42Z")

</div>

This is not currently a feature of the Gravity Forms notifications, but it is on our list of requested features to add that capability. I will add your vote. Thank you.

---

<div class="post-metadata">

**Author:** ![nickhempsey](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/nickhempsey/32/996_2.png) [@nickhempsey](https://community.gravityforms.com/u/nickhempsey)\
**Post date:** [September 18, 2019, 11:39pm UTC](https://community.gravityforms.com/t/enable-multi-part-message-format/2773/3 "2019-09-18T23:39:28Z")

</div>

Can you add me to that vote count?

I’m stuck on an API build because the multipart support in WordPress is essentially nonexistent and the API rejects all of my requests. Sigh.

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [September 19, 2019, 1:36am UTC](https://community.gravityforms.com/t/enable-multi-part-message-format/2773/4 "2019-09-19T01:36:36Z")

</div>

Will do. Another vote added.

---

<div class="post-metadata">

**Author:** ![tylerg](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/tylerg/32/1027_2.png) [@tylerg](https://community.gravityforms.com/u/tylerg)\
**Post date:** [December 12, 2019, 8:41pm UTC](https://community.gravityforms.com/t/enable-multi-part-message-format/2773/5 "2019-12-12T20:41:33Z")

</div>

We were able to come up with a code snippet using examples from this Gravity Forms page: [https://docs.gravityforms.com/gform\_notification/](https://docs.gravityforms.com/gform_notification/)

When running [https://www.mail-tester.com/](https://www.mail-tester.com/) it seems to have solved the problem.

```
add_filter( 'gform_notification', 'change_notification_format', 10, 3 );
function change_notification_format( $notification, $form, $entry ) {
	GFCommon::log_debug( 'gform_notification: change_notification_format() running.' );
	// Do the thing only for a notification with the name Text Notification

	GFCommon::log_debug( 'gform_notification: format changed to multipart.' );
	// Change notification format to multipart from the default html
	$notification['message_format'] = 'multipart';

	return $notification;
}
```

---

<div class="post-metadata">

**Author:** ![richardw8k](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/richardw8k/32/2354_2.png) [@richardw8k](https://community.gravityforms.com/u/richardw8k)\
**Post date:** [January 5, 2022, 12:41pm UTC](https://community.gravityforms.com/t/enable-multi-part-message-format/2773/6 "2022-01-05T12:41:30Z")

</div>

Closed on January 5, 2022, 12:41pm UTC


