Finished mailing function etc.