http://stackoverflow.com/questions/17145849/sending-multipart-text-html-alternative-message-with-file-attachments-with-perl Details the issue and the fix. Actually implementing this will likely require some restructuring of the mime generation code, so for now just only specify one or the other if you also have an attachment.