How to Change the Reply-to Email for the Save and Resume Addon

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.

begin by creating your 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.

enable save and resume and configure the settings

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.

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.