Fix authentication and mailing