Fix recursive call bug

The radiant mailer extension crashed with a recursive call-stack overflow
This change fixes the recursive call endless loop moves the mail class into the extension module