Sign in to your Gmail inbox.

SelectSettings(the gear icon).

In theSettingsscreen, go to theAdvancedtab.

The Settings gear in Gmail

In theTemplatessection, selectEnableto work with Gmail templates.

SelectSave Changesfor the change to take effect.

This way, you’ll only write the message once.

Selecting to view all settings in Gmail.

SelectCompose(theplus signicon located in the upper-left corner).

In theNew Messagewindow, throw in a general message that lets the sender know that you’ve blocked them.

SelectMore(thethree stacked doticon located in the lower-right corner of the New Message window).

Visible Gmail unread count on tab

SelectTemplates>Save draft as template>Save as new template.

Enter a descriptive name for the template, then selectSave.

If you have an existing spam filter, edit it to include the template response.

Gmail settings with the Enable Templates radio button highlighted.

Select theSettings gear icon.

Select theFilters and Blocked Addressestab.

SelectCreate a new filter.

Gmail settings with the Save Changes button highlighted

If you have an existing filter, edit it instead.

Set the criteria Gmail will use to filter your mail.

Choose a sender email address, subject, or certain words in the body of the email.

Selecting Compose in Gmail.

Combining these will only filter email that meets all the criteria specified.

When you’re done, selectCreate filter.

Choose the actions Gmail should take when it receives an email that matches your criteria.

Gmail compose template message

Choose as many as you like, but to eliminate spam, chooseDelete it.

Then, selectSend template, and choose a spam response template.

When everything looks good, selectCreate filterto finalize the new filter.

Selecting More in Gmail.

The filter creation dialog will close, and the filter list will update to show your new filter.

Next time you receive a message that meets the filter criteria, Gmail will take the actions you specified.

Gmail save message as template

Gmail save template

The “See All Settings” button in Gmail

Gmail settings with the “Filters and Blocked Addresses” heading highlighted

Gmail Filters and Blocked Addresses settings with the Create a new filter button highlighted

Creating a filter in Gmail with the “Create Filter” button highlighted

Gmail filter settings with “Send Template” highlighted

Filter creation window in Gmail with the Create filter button highlighted