Customize Email Actions with Hooks for Forms in WordPress

Modify email attachments, recipients, headers, content, and validation with WS Form hooks.

  • Modify attachments Change the attachments array of absolute file paths for email actions.
  • Adjust CC and BCC Modify CC and BCC email address arrays before sending.
  • Control reply-to Change the Reply To setting used by email actions.
  • Edit email content Modify the email message before it is sent.
  • Customize email CSS Change CSS used in the standard email template.
  • Validate addresses Validate email addresses prior to sending emails.

WS Form includes action and filter hooks that let you customize how the Send Email Action works in forms in WordPress.

You can modify attachments, CC, BCC, reply-to settings, SMTP headers, email message content, CSS used in the standard email template, and email address validation before messages are sent.

You can also use the Run WordPress Hook Action to run any action or filter hook.

Real Customer Reviews

Trusted by thousands of WordPress professionals.

  • I’ve been building WordPress websites for over 10 years and in that time I’ve used nearly every form solution out there. WS Form is head and shoulders above the rest. It’s insanely powerful, reliable and flexible.

    jamesburden
  • I’m quite impressed with the friendly customer service. Highly recommended!

    caricaturist
  • WS Form is simply the best plug-in in the WordPress universe – period. The support is wonderful, fast, friendly and always available.

    upt2

Frequently Asked Questions

What can I customize with WS Form email hooks?

WS Form provides hooks to modify attachments, BCC, CC, CSS used in the standard email template, email address validation, SMTP headers, the email message, and the Reply To setting when using the Send Email action.

Can I change email attachments before WS Form sends an email?

Yes. The wsf_action_email_attachments filter lets you modify the attachments array of absolute file paths when sending emails.

Can I validate email addresses before an email is sent?

Yes. The wsf_action_email_email_validate filter allows you to validate email addresses prior to sending emails using the Send Email action.

Can I modify the email message content in WS Form?

Yes. The wsf_action_email_message filter allows you to modify the message when sending emails using the Send Email action.

Can I change SMTP headers for outgoing emails?

Yes. The wsf_action_email_headers filter allows you to modify the array of SMTP headers when sending emails.

How do I run a custom hook in WS Form?

You can use the Run WordPress Hook Action to run any action or filter hook.