I want to write a simple python script that send a EML file exported from Outlook though given smtp server as email to a given list of emails. I know how to send a simple email but sending a EML file as email is not something i could do and could not find it on Google. Can anyone help me with that. The EML file is actually in HTML format with embedded images. Any alternate suggestion is also welcome.
Share
Building on the
emailmodule example, try using a MIME attachment with HTML content.If the EML format is just HTML, this should work.
The example shows how to construct a message with (html) attachments: