So two questions here:
1. why do you have the same file attached twice?
2. why isn't the disposition set to INLINE?
Can you post the relevant code you use to get to this kind of message?
for (var a = 0; a < this.headerLogo.length; a++) {
var headerLogo = this.headerLogo[a];
if (headerLogo) {
message['addAttachment'](plugins.MailPro.Attachment(headerLogo[0], headerLogo[1]));
message['embedAllImages'](true);
}
}
message.addAttachment(...)
var attachmentToAdd = plugins.MailPro.Attachment(headerLogo[0], headerLogo[1]);
attachmentToAdd.embedded = true;
message.addAttachment(attachmentToAdd);
if (this.images) {
message['embedAllImages'](true);
for (var a = 0; a < this.images.length; a++) {
var image = this.images[a];
if (image) {
message['addAttachment'](plugins.MailPro.Attachment(image[0], image[1]));
}
}
var mailAttachemts = message.getAttachments();
for (var iAttachment = 0; iAttachment < mailAttachemts.length; iAttachment++) {
var currentAttachment = mailAttachemts[iAttachment];
if (currentAttachment.getMimeType().indexOf('image') >-1) {
currentAttachment['embedded'] = true;
}
}
}
Return to Programming with Servoy
Users browsing this forum: Bing [Bot] and 16 guests