For development purposes. When the mail() function failed to send a message, you can save it (in txt or html).
It's very useful for developers, who has no any local mail server, but wants to check, how a letter looks like, before commiting the project...
These details are provided for information only. No information here is legal advice and should not be used as such.