Hi Avijit, Please could you follow up with how you solved your issue. It will add to the body of ofbiz knowledge and help those who might have similar issues in the future.
Thanks, Dan. On Sat, 11 Jun 2022 at 04:04, Avijit Bose <[email protected]> wrote: > I have solved it. > > regards > Avijit > > On Sat, Jun 11, 2022 at 8:15 AM Avijit Bose <[email protected]> wrote: > > > Dear Sir, > > > > In connection to my previous email, I am getting the below mentioned > > error. Pls let me know how can I solve this. > > > > The Following Errors Occurred: > > > > Unable to send email: > org.apache.ofbiz.service.ServiceValidationException: > > In field [bodyText] less-than (<) and greater-than (>) symbols are not > > allowed. > > > > On Fri, Jun 10, 2022 at 6:26 PM Avijit Bose <[email protected]> > wrote: > > > >> Dear Sir, > >> > >> I am sending BIRT email as follows: > >> ------------------------------------------- > >> dispatcher.runSync("sendBirtMail", UtilMisc.toMap( > >> "sendTo", supplierEmail, > >> "sendCc", sendCc, > >> "sendFrom", sendFrom, > >> "subject", subject, > >> "bodyText", body, > >> "contentType", "text/html", > >> "attachmentName", attachmentName, > >> "birtReportLocation", birtReportLocation, > >> "birtParameters", map, > >> "userLogin", userLogin > >> )); > >> ------------------------------------------- > >> > >> Question: I am unable to send email body in HTML format. The above > >> "contentType", "text/html", is not working. When sending as "bodyText", > >> body, ... I am able to get the body in email but email body is showing > up > >> as plain text. > >> > >> Pls let me know how could I send email body as HTML format in BIRT > Email. > >> > >> regards > >> Avijit > >> > >> > >> > -- Daniel Watford
