Write to your MP, MEP, & other elected representatives.
PHP HTML Perl CSS Bluespec JavaScript Other
Latest commit 6e4ef2a Sep 15, 2016 @struan struan convert body text to Email::MIME object in representative email
If we don't do this then UTF-8 characters break message building
Failed to load latest commit information.
bin add a Dear to the test message so the HTML formatting works Sep 15, 2016
commonlib @ 977b8d8 Update commonlib. Aug 12, 2016
conf add libio-all-perl to packages list Sep 15, 2016
db Output CSV of cobrand counts. Mar 18, 2013
doc Add Retry button for failed messages. Don't time out things put back Feb 5, 2007
perllib convert body text to Email::MIME object in representative email Sep 15, 2016
phplib Include message in own reps email link. Sep 8, 2016
t Change cobranding URLs and tests to be HTTPS aware. Oct 17, 2013
templates Merge branch '164-html-emails' Sep 15, 2016
web-admin Optimize PNGs using pngquant Oct 15, 2015
.gitignore Ignore any .sass-cache directory. Sep 17, 2015
.gitmodules Adding commonlib submodule Jan 19, 2010
LICENSE.txt Adding license Jan 26, 2010
README.md Add workaround for Chrome bug #153768. Nov 25, 2015



WriteToThem lets you contact elected representatives in the United Kingdom.

If you want to build your own site for writing to people, we recommend you take a look at WriteIt instead. WriteToThem is a legacy project with many particular quirks, whereas WriteIt was built from the start to be more flexible and easier to use.

Developing WriteToThem


WriteToThem uses the Foundation framework, and styles are compiled using Compass. Before you start editing files you will need some prerequisites, which can be installed as follows (you may need to use sudo):

  • gem install zurb-foundation will install the necessary components of the framework.
  • gem install compass will install Compass, ready to compile assets.

The Sass files used to compile styles are located in web/static/sass. To compile them, cd to the web/static directory and run compass compile. If you are making frequent changes, compass watch will watch the directory for changes and recompile when necessary.


Thanks to Browserstack who let us use their web-based cross-browser testing tools for this project.