Home
Extended ECM
API, SDK, REST and Web Services
sending multiple attachments using SMTP client
Sapna_Shah_(sapna.shah_-_(deleted))
Hi,I have LL971.I am trying to send multiple attachment files in email via OScript.. Does LL Kernel.SMTPClient allow sendign mutlipel attachments?? I knwo it was not possible in LL951 to send an attachment.. SO we had ussed webreport module's SMTP client to send one email attachemtn. But now we want to send multiple attachments in email, and calling Webreport's SMTP client LL server is dying. I am nto suere whether its the nature of the fiel or size of the file or actually problem sendign multiple atachment is an issue. I actually used a 1k text fiel for testing and had same issue.The attachemt files that I want ot send in email will be in LL and can be xls or word doc or test files or email files with size of 1 kb to maybe 1 mb or more.. Has anybody done something similar in past?? I will greatly appreciate any suggestions or samples, pelase.thankssapna
Find more posts tagged with
Comments
Lee_Butler
Hi Sapna,WebReports 5.0.0 introduced a new sub-tag called SETMAILATTACH. This supports adding multiple files to email report destinations. The feature has been released around a year and we haven?t had any problems reported.It?s not really clear to me what the context is. If you want to use a WR to send a series of documents just write a SQL statement to return a list if dataids then use SETMAILATTACH to attach them to the email. E.g. [LL_REPTAG=DATAID SETMAILATTACH /]Thanks,Lee.
Carsten_Kulms
Message from Carsten Kulms via eLinkI have never done that but the following comment at the SendMessagefunction of Kernel.SMTPClient// Note: This func only take one attachment file. If you have multiplebody files or attachments, // you need to write your own SendMessage like this one.indicates it requires some work. (Does not look really hard at a firstglance.)However, I am not sure if using Kernel.SMTPClient is supported.