The filename is what is shown to the user, not the file on your sending computer. It should NOT have a path in it.
in the html, use img src="cid:ID_GIVEN_HERE"
Sends via a given SMTP relay
automatically sets a text fallback if you haven't already
Returns the MIME formatted email string, including encoded attachments
To use:
auto message = new EmailMessage(); message.to ~= "someuser@example.com"; message.from = "youremail@example.com"; message.subject = "My Subject"; message.setTextBody("hi there"); //message.toString(); // get string to send externally message.send(); // send via some relay // may also set replyTo, etc
For OUTGOING email