Use new mail function
http://tracker.modx.com/issues/10125