Python code to send signed email with attachment