fix body and filename of attachment in send as pdf