| 开发者 | binarybeagle |
|---|---|
| 更新时间 | 2026年7月12日 08:21 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.0 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
sendtomp folder to /wp-content/plugins/, or install it from the Plugins screen.wp_mail() is unreliable for parliamentary inboxes.Double opt-in ensures that only the actual owner of the email address can send a message to a representative. It prevents abuse, it records explicit consent, and it means the messages that arrive are genuine constituent correspondence. Messages sent this way carry more weight in an MP's office, because the office can trust they are real.
Gravity Forms, WPForms, and Contact Form 7. There is also a webhook / REST API endpoint for custom integrations with platforms like Zapier, n8n, Make, or a CRM. All of them are available to every user.
Yes. Visitors can search for and select a Peer by name.
The postcode is sent to the UK Parliament Members API, which returns the constituency and its sitting MP, along with the contact address Parliament publishes for them. Only the postcode is sent. See the External services section for full detail.
Some members, particularly in the Lords, have no published email address. SendToMP will tell the visitor it cannot deliver the message rather than accepting it and failing silently. As the site owner you can supply an address yourself under SendToMP → Address Overrides, which takes precedence over the published one. That is also the place to correct an address that has changed.
You need some reliable way to send mail. WordPress's default wp_mail() uses PHP's mail(), which is unreliable, and parliamentary mail gateways are strict. You can configure Brevo or your own SMTP server directly in SendToMP on the Email Delivery tab, or install an SMTP plugin such as WP Mail SMTP, FluentSMTP, or Post SMTP.
The constituent's name, email address, postcode, and message are stored on your own site. The message itself is held encrypted in a pending record until it is confirmed, and that record is deleted when the confirmation link expires. A row in the submission log recording the name, email address, postcode, subject, and status is kept for the log retention period, which defaults to 90 days, and is then deleted automatically. That log row is kept whether or not the message was ever confirmed. The Privacy tab includes a suggested privacy-policy paragraph that describes this accurately, using your site's own configured expiry and retention values. You are welcome to copy it into your privacy policy.
Go to SendToMP → Privacy and use the Erase Data tool. Enter the person's email address and the plugin deletes their submission log entries and any pending submissions.
Yes. Updates come from WordPress.org. Click "Enable auto-updates" next to SendToMP on the Plugins screen.
No. Every feature in this plugin is free and fully functional.
members-api.parliament.uk directly, with no API key and no intermediary. Parliament is the source of truth for who represents a postcode and where to write to them.thumbnail_url before the page could read it. Introduced in 1.6.10, fixed now.<style> and <script> blocks on the confirmation, thank-you, and error pages, in the admin, and in the Gravity Forms editor are now properly enqueued.{mp_name}, {mp_constituency}, postcode and all Gravity Forms merge tags in both the subject and body preview — previously the raw placeholders leaked straight to the screen.pending_confirmation to confirmed when the constituent clicks the link. Adds a pending_id column linking log rows to the pending record, plus a confirmed_at timestamp.pending_resent status so it no longer inflates the "emails sent" denominator.TypeError that could fire when a constituent submitted the form a second time while an earlier confirmation was still pending.SENDTOMP_SECRET_KEY constant.