DirectEmployers/MyJobs-urls — pull request #80 by tdphillips (2014-03-11 17:40:36+00:00)
Title: Company emails [RD-84]

This should cover all of the Phase 1 tasks outlined in the ticket (with the exception of secure.my.jobs logging - separate PR) (https://directemployersfoundation.atlassian.net/browse/RD-84). The Phase 1 reach goals are not included, but will be fairly quick. Phase 2 tasks will probably be ready for the annual meeting as well, assuming analytics stuff doesn't take too long.

Contains two new models.
CompanyEmail - represents a company contact. Two fields - buid, email
EmailRedirectLog - represents a successful email redirect. Five fields - from address, to guid, buid, to address, and sent time

There are lots of `return 200`s, but that's really the only way to stop SendGrid from repeatedly forwarding the same email.

Sending emails works with everything I've tried so far, including attachments (inline images get turned into attachments but do not show up in the redirected email's body), but I'm sure someone will come up with something different enough that it could fail.

All tests pass.