I have a lot of fields in my contact form and I would like the blank fields not to be displayed in the email received. 

Is there a way to do this by adding php code in the message body (wordpress > admin > contact form)? Any pointers would be very helpful.