Introduction
Would you like to change the reply-to email address that the Save and Resume addon uses when sending the resume link? Using a small snippet, you can easily customize this email to be different from your WordPress admin email. In this tutorial, we’ll walk you through how to achieve this.
Creating the form
First, you’ll need to create a new form.
If you need assistance in creating a form, you can always review this documentation.
Enabling the Save and Resume
Next, we’ll need to enable Save and Resume on the form. To do this, click on Settings from inside the form builder and toggle the switch for Enable Save and Resume. Once you’ve enabled this, you can proceed with configuring the settings and messages.
For further assistance on the Save and Resume addon and setup, please review this documentation.
Adding the snippet
Now it’s time to add the snippet to your site. If you need help with how and where to add snippets to your site, check out this tutorial.
/* * Change the reply-to email address that Save and Resume addon uses * * @link https://wpforms.com/developers/how-to-change-the-reply-to-email-for-the-save-and-resume-addon/ */ function save_resume_change_reply_to( $reply_to, $email ) { if ( $email->template instanceof WPFormsSaveResume\Email\Templates\SaveResume ) { // Change reply-to address on Save and Resume email $reply_to = '[email protected]'; } return $reply_to; } add_action( 'wpforms_emails_mailer_get_reply_to_address', 'save_resume_change_reply_to', 10, 2 );
You’ll need to change the $reply_to to match the email address you want to set it to. And simply by adding this snippet, any email sent with the Save and Resume addon will have this specific email address you want the users to reply to.
The email settings may experience a malfunction if the SMTP plugins or custom codes are altered.
And that’s it! You’ve successfully used a snippet to change the reply-to email address. Would you like to also customize the from email address? Check out our tutorial on How to Customize the From Email Address for the Save and Resume Addon.
FAQ
Q: Can I change the name it comes from as well?
A: Absolutely! To change the name, use this snippet.
/* * Customize the from name address that Save and Resume addon uses * * @link https://wpforms.com/developers/how-to-customize-the-from-email-address-for-the-save-and-resume-addon/ */ function save_resume_change_from_name( $from_name, $email ) { if ( $email->template instanceof WPFormsSaveResume\Email\Templates\SaveResume ) { // Change from name with Save and Resume email $from_name = 'Sullie Eloso'; } return $from_name; } add_action( 'wpforms_emails_mailer_get_from_name', 'save_resume_change_from_name', 10, 2 );