Emails, updated
Autoresponder
An autoresponder sends an automatic reply to the person who submitted your form. It's on the Pro and Agency plans. Because it mails an address a stranger typed, it has two safeguards: the form must have allowed domains set and the post must come from one of them, and each address gets at most 3 autoresponses a day.
Requirements
- The form has a field named
email. allowed_domainsis set on the form, and the post comes from one of those domains.- The plan is Pro or Agency.
If a rule isn't met, the autoresponse shows as a skipped delivery with the reason. The notification email still goes out.
Set it up
curl -X PATCH https://formthunder.com/api/v1/forms/YOUR_FORM_ID \
-H "Authorization: Bearer ft_live_..." \
-H "Content-Type: application/json" \
-d '{
"allowed_domains": ["example.com"],
"autoresponder": {
"enabled": true,
"from_name": "Acme",
"subject": "We got your message",
"intro_text": "Thanks for writing. We reply within one working day.",
"show_copy": true
}
}'Settings
| Setting | What it does |
|---|---|
enabled | Turns it on. |
from_name | Sender name. |
subject | Subject line. Supports field variables such as {{name}}. |
intro_text | The message above the copy of the submission. |
show_copy | Includes a copy of what they sent. |
logo_url | Logo at the top. |
theme | A built-in theme. |
template_id | A custom template of kind autoresponder. |
Send the whole autoresponder object when you change it: read it with GET /api/v1/forms/:id, change what you need and send it back.
Custom template
npx formthunder template push reply.html --name "Thanks" --kind autoresponderThen set autoresponder.template_id to the new ID. The variables are the same as in notifications, apart from {{report_spam_url}} and {{dashboard_url}}.
Test it
test_form runs through the same settings. A post from a page on one of your allowed domains is the real test, because that's the check an autoresponder depends on.