Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X
Hi,
is anyone familiar with how to use the parameters in the mail server SendMessageWithAttachment service. Tried a number of versions but still getting errors. I'm trying to send an attachment file called 'My Notes.docx" which is in a folder called 'Documents" in a file repository called "Document.File.Repository" Currently my set up is as shown below
var params = {
cc: undefined /* STRING */,
path: "\/Documents\/My Notes.docx" /* STRING */,
bcc: "me@gmail.com" /* STRING */
subject: "Developer Notes"/* STRING */,
to: "recipient@gmail.com" /* STRING */,
fileRepository: "Document.File.Repository" /* THINGNAME */,
from: "me@gmail.com" /* STRING */,
attachmentName: "My Notes.docx" /* STRING */,
mimeType: ".doc" /* STRING */,
body: "This is a test"
};
Things["Linx.MailServer"].SendMessageWithAttachment(params);
When I try to use these parameters I get the following error - JavaException: javax.mail.internet.ParseException: Expected '/', got null
I'm particularly keen to understand
Thanks in advance,
K
Solved! Go to Solution.
Hi @khayes1.
Thank you for posting your question on the community. We are working to address your question.
Regards.
--Sharon
Thank you, looks like the information I was looking for.
K