MIME library should create message from a string containing the message; the outer wrapper program should be concerned with getting it from a file. Now this same application could instead e.g., use a web front end.