Sending emails within attachments is very easy and straightforward, using ad_proc [acs_mail_lite::send]
However, how would those attachments be referenced within the body of the email itself (i.e. as part of the HTML content?
I'd like to use those attachments (i.e. images) within the body of the email itself. How would I call files? What should I write within img HTML tags.
For example in node.js it would be something like:
var params = {
smtpapi: new mail.SmtpapiHeaders(),
... //some vars removed here!
files: [
{
filename: 'image.jpg',
contentType: 'image/jpeg',
cid: 'myimagecid',
content: ('yourbase64encodedimageasastringcangohere' | Buffer)
}
],
file_data: {},
headers: {}
};
and the HTML is
<html>
<body>
<img src="cid:myimagecid"/>
</body>
</html>