Are you ready to customize email templates for download email?
WP Travel plugin provides an option to send the download attachments of the trip to a designated email address.
For more information, refer to the Download Itinerary feature page
Table of contents
Step 1
By selecting the “Want to send trip information to others?” option and providing the required email address under the Downloads tab, the website owner can send the download attachments to the specified recipients.

With the release of WP Travel v8.4.0 and WP Travel Pro v7.4.0 , you can now customize the email template for download email.
Step 2
Default email received by the client

So, to change the email content, please add the following code to the functions.php file of your child theme or simply you can add it through code snippets.
function wptravel_change_download_attachment_mail_content( $body, $trip_url, $trip_info, $downloadable_link ) {
return "Hello,<br><br>You have received NEW CUSTOMIZE <a href='{$trip_url}'>{$trip_info}</a> attachments INFORMATIONS. Please find the attachment link below. <br>" . $downloadable_link . "<br>Thank You";
}
add_filter( 'wptravel_download_attachment_mail_content', 'wptravel_change_download_attachment_mail_content', 10, 4 );
If you need more information on creating a child theme, please check out our Knowledgebase.
Step 3
Customized email received by the client

Hook to change the Subject of Download Email
function wptravel_change_download_attachment_mail_subject( $subject, $trip_info ) {
return $trip_info . 'New Email Subject';
}
add_filter( 'wptravel_download_attachment_mail_subject', 'wptravel_change_download_attachment_mail_subject', 10, 4 );
Conclusion
Customizing the download email template in WP Travel allows you to tailor the message your customers receive along with their trip documents. By following the steps to modify the template, you can align the email content with your brand tone and provide clear instructions or additional details. This not only enhances professionalism but also improves user satisfaction by delivering well-structured and informative emails.
Additionally, if you want to learn more about the filter hook associated with email available in the WP Travel plugin, refer to the hook page.
Check the WP Travel documentation to learn more about configurations, modules, payments, and shortcodes.
Your feedback helps us improve. Feel free to share your thoughts!
Need assistance? Contact our support team, join our Facebook community, and subscribe to our YouTube Channel for video tutorials.
You can also find us on Facebook, Instagram, LinkedIn, TikTok, and X. Thank you for choosing WP Travel.
If you are a WP Travel Free user thinking about upgrading to Pro, simply click on the banner below.

WP Travel Editorial is a team of WordPress and travel industry experts dedicated to delivering technical resources, travel business guides, and general travel insights. With over 10 years of experience, the team provides in-depth release notes, feature updates, and informative articles to help tour operators and travel enthusiasts succeed in the evolving travel landscape.
From plugin updates and industry trends to practical travel resources, WP Travel Editorial shares valuable content that supports both the travel industry and avid travelers.






