I have an email that is sent from either a rake task or from a user action. When it is sent from the user action it gets delivered as nicely formatted html. When sent from the rake task it is text, with all the html code visible.
Is there a setting I am missing?