added mailing method to session_create method