Set up sendgrid in production.
Refactor mail settings, fix incorrect link path.