Hotel Booking Email Attachments

Hotel Booking Email Attachments is an add-on for MotoPress Hotel Booking that lets you send files with booking emails. Assign files to accommodation types to include them automatically in the confirmed booking email, or add an email tag to include a file in another Hotel Booking email.

Installation

  1. Install and activate the MotoPress Hotel Booking plugin.
  2. Upload and activate Hotel Booking Email Attachments.
  3. In your WordPress dashboard, open Accommodation → Email Attachments.

Create an email attachment

Each Email Attachment pairs a WordPress Media Library file with a reusable attachment post.

  1. Select Add New under Accommodation → Email Attachments.
  2. Enter a title to help you identify the attachment in the dashboard.
  3. Under Attachment File, select Choose File and pick a file from the Media Library.
  4. Optionally edit the Email Tag key. Use Latin letters, numbers, and dashes.
  5. Publish the Email Attachment.

You can create a separate Email Attachment for each file you want to send. For example, create posts for a welcome guide, a property map, or check-in instructions.

Automatically attach files to a confirmed booking email

You can assign files to accommodation types so they are included automatically when a booking is confirmed.

  1. Go to Accommodation → Accommodation Types and edit an accommodation type.
  2. Find the Email Attachments section.
  3. Select the files to include with the confirmed booking email for that accommodation.
  4. Use the up and down arrows to set the attachment order.
  5. Save the accommodation type.

The selected files are added to the customer’s confirmed booking email for bookings that include that accommodation type. If a booking includes multiple accommodation types, their assigned files can be included together; duplicate files are sent only once.

Attach a file using an email tag

Email tags let you add a reusable file to a Hotel Booking email template. They are useful for files that apply across accommodations, such as a general welcome guide or terms document.

  1. Open Accommodation → Email Attachments and edit the relevant attachment.
  2. Copy the tag displayed under the Email Tag field. It follows this format:
    %email_attachments:welcome-pack%
  3. In Hotel Booking email settings, paste the tag into the email template where you want to use it.
  4. Save the email template.

When that email is sent, the tag is replaced with the file attachment. The tag key is saved separately from the post slug, so changing the post’s URL slug does not change the tag.

Multilingual websites

When WPML is active, the add-on can resolve translated Email Attachment posts and files for the booking language. Configure mphbea_email_attach as translatable in WPML, and provide translated attachment posts with the appropriate files and tag keys.

If a translation or file is unavailable, the add-on skips the missing file so it does not prevent the email from being sent.

Frequently asked questions

Can I attach more than one file to an accommodation type?

Yes. Select multiple Email Attachments and arrange them in the order you want them sent.

Which email receives accommodation-specific files automatically?

Files assigned to accommodation types are added to the Hotel Booking Customer Approved Booking email.

Can I use an email tag in any Hotel Booking email?

Yes. Add the tag to the desired Hotel Booking email template. Each tag refers to an existing Email Attachment post.

Does each Email Attachment support multiple files?

No. Each Email Attachment post selects one Media Library file. Create one post for each file.

What happens if a selected file is missing?

A missing or unreadable file is skipped. Other valid attachments can still be sent.

Does the add-on require WPML?

No. WPML support is optional and is used to resolve translated attachment posts and files when WPML is available.

Related Topics