Hi Mark,



It seems that the from is not   getting instantiated properly, (I'm not aware of gs.createUser() function)



you could try this code snippet to instantiate it.



var from = new GlideRecord("sys_user");


from.get("sys_id", email.body.from);



Let me know if it's helpful.



Thanks,


Mandar