Fix for the multipart mail sending.