Code for pic and email