1. There is no good reason to doubt that the prohibition of section 4579 of the code, upon ordinary Sunday labor, applies no less to telegraph companies and their employees than to other persons, the language of the section being: “Any tradesman, artificer, workman or laborer, or other person whatever, who shall pursue their business or work of their ordinary callings upon the Lord’s day (works of necessity or charity only excepted), shall he guilty of a misdemeanor, and, on conviction, shall be punished as prescribed in section 4310 of this code.” Anything that is prohibited by law under a penalty, cannot become a legal duty by reason of any contract or agreement which may be entered into concerning it. A so-called contract to violate the law is no contract at all. A telegraph company is not by law, and cannot put itself by contract, under any duty to transmit- and deliver messages on Sunday, unless by reason of the subject-matter nf the messages in question their transmission and delivery can fairly be considered as a work of necessity or charity. It makes no difference that the company, in addition to undertaking to perform the work, received and accepted full compensation for its performance. This might subject it to refund the money, bnt could not oblige it to render the service.
2. In the present case the contents of the message furnish no indication whatever of any necessity or charity to be subserved by the message, and incidentally by the work of transmission and delivery; nor is any such object brought in sight or even faintly suggested
The charge of the court to the jury conflicted with the views expressed in this opinion, and was, we think,, erroneous. Judgment reversed.