Backporting the contact form example from version 4.