OpenNTF / org.openntf.domino

Open replacement for lotus.domino package in HCL Domino
Apache License 2.0
65 stars 34 forks source link

Sending MIME email #121

Closed paulswithers closed 4 years ago

paulswithers commented 10 years ago

I think there's two issues.

1) document.send() tries to send to an empty Vector, which will always fail. Fixed with the commit allocated to this issue, by calling the delegate also in send(boolean).

2) But DominoEmail doesn't set a sendTo field etc, it does: mimeHeader = mimeRoot.createHeader("To"); mimeHeader.setHeaderVal(join(getTo(), "")); document.send() even with the fix throws an error "Unable to send mail, no match found in Name & Address Book(s)".

I'm not sure why the second one is failing and how to fix it. If we need to set the recipients field, I suspect it will need to, cc and bcc. But I'm not sure.

paulswithers commented 10 years ago

Not sure if it's relevant, but the send() method of DominoEmail is setting convertMIME(false) at start of the process. document.send() method does checkMIMEOpen(), but commenting that out has no effect.