Use model to create new transaction instead of direct core_resource access
Merge pull request #1 from VicDeo/use-model

Use model to create new transaction instead of direct core_resource access
Set email sent flag after email is sent
Merge pull request #2 from VicDeo/email-sent

Set email sent flag after email is sent