Hi Raj The steps I take are:-
1. Select Marketing tab in Webtools 2. Select a ContactList I've already created 3. Create a new CommEvent on that list -- see attached image 4. Press save I see the SEC rule firing a sendEMailToContactList being invoked and requesting an Async Service. The Async service attempts to run but does nothing Hope you can help. Thanks Alan ----- Original Message ---- From: Raj Saini <[EMAIL PROTECTED]> To: [email protected] Cc: Calum Miller <[EMAIL PROTECTED]> Sent: Monday, 10 March, 2008 8:47:10 PM Subject: Re: Sending mails to contact lists Hi Alan, I have contact list emails working for me correctly. Can you tell what and how exactly you are doing? Raj Alan Halley wrote: > Hi Jacques > > I tried Raj's fix but it didn't make any difference. > > Alan > > ----- Original Message ---- > From: Jacques Le Roux <[EMAIL PROTECTED]> > To: [email protected] > Sent: Monday, 10 March, 2008 8:46:03 AM > Subject: Re: Sending mails to contact lists > > Did you try Raj's advice (I commited his changes in > https://issues.apache.org/jira/browse/OFBIZ-1699) ? > > Jacques > > From: "Alan Halley" <[EMAIL PROTECTED]> > Hi > > Thanks for responding so quickly. > > Here is a sample from our logs > > 2008-03-09 18:54:32,412 (http-0.0.0.0-8443-Processor3) [ > ConfigXMLReader.java:297:INFO ] RequestMap Created: (94) records in > 0.036s > 2008-03-09 18:54:32,420 (http-0.0.0.0-8443-Processor3) [ > ConfigXMLReader.java:391:INFO ] ViewMap Created: (5) records in 0.0080s > 2008-03-09 18:54:32,458 (http-0.0.0.0-8443-Processor3) [ > ConfigXMLReader.java:391:INFO ] ViewMap Created: (47) records in 0.046s > 2008-03-09 18:54:32,468 (http-0.0.0.0-8443-Processor3) [ > RequestHandler.java:243:INFO ] [Processing Request]: > createContactListCommEvent sessionId=B328DB76615497C4705AD4CC42AB3401.jvm1 > 2008-03-09 18:54:32,528 (http-0.0.0.0-8443-Processor3) [ > SequenceUtil.java:341:INFO ] Got bank of sequenced IDs for > [CommunicationEvent]; curSeqId=10760, maxSeqId=10770, bankSize=10 > 2008-03-09 18:54:32,543 (http-0.0.0.0-8443-Processor3) [ > ServiceEcaRule.java:101:INFO ] For Service ECA > [createCommunicationEvent] on [commit] got false for condition: > [null][][contactListId][is-empty][null][][true][String][] > 2008-03-09 18:54:32,549 (http-0.0.0.0-8443-Processor3) [ > ServiceEcaRule.java:118:INFO ] Running Service ECA Service: > sendCommEventAsEmail, triggered by rule on Service: createCommunicationEvent > 2008-03-09 18:54:32,560 (http-0.0.0.0-8443-Processor3) [ > RequestHandler.java:433:INFO ] [RequestHandler.doRequest]: Response is > a view. sessionId=B328DB76615497C4705AD4CC42AB3401.jvm1 > 2008-03-09 18:54:32,561 (http-0.0.0.0-8443-Processor3) [ > RequestHandler.java:584:INFO ] servletName=control, > view=EditContactListCommEvent sessionId=B328DB76615497C4705AD4CC42AB3401.jvm1 > 2008-03-09 18:54:32,616 (http-0.0.0.0-8443-Processor3) [ > ScreenFactory.java:118:INFO ] Got 11 screens in 0.051s from: > file:/home/mercatx/ofbiz/svntmp/mercatx/branches/cw1/applications/marketing/widget/ContactListScreens.xml > 2008-03-09 18:54:32,648 (http-0.0.0.0-8443-Processor3) [ > ScreenFactory.java:118:INFO ] Got 3 screens in 0.016s from: > file:/home/mercatx/ofbiz/svntmp/mercatx/branches/cw1/applications/marketing/widget/CommonScreens.xml > 2008-03-09 18:54:32,704 (http-0.0.0.0-8443-Processor3) [ > ScreenFactory.java:118:INFO ] Got 16 screens in 0.046s from: > file:/home/mercatx/ofbiz/svntmp/mercatx/branches/cw1/framework/common/widget/CommonScreens.xml > 2008-03-09 18:54:32,729 (http-0.0.0.0-8443-Processor3) [ > ModelScreenWidget.java:360:INFO ] In the include-screen tag the screen > name was empty, ignoring include; in screen [GlobalDecorator] > 2008-03-09 18:54:32,794 (default-invoker-Thread-3839) [ > JobInvoker.java:211:INFO ] Invoker [default-invoker-Thread-3839] > received job [1205088872557] from poller [EMAIL PROTECTED] > 2008-03-09 18:54:32,846 (default-invoker-Thread-3839) [ > GenericAsyncEngine.java:137:INFO ] Persisted job queued : 1205088872842 > 2008-03-09 18:54:43,519 (default-invoker-Thread-3839) [ > JobInvoker.java:211:INFO ] Invoker [default-invoker-Thread-3839] > received job [1205088872842] from poller [EMAIL PROTECTED] > 2008-03-09 18:54:43,523 (default-invoker-Thread-3839) > [PersistedServiceJob.java:138:INFO ] > [EMAIL PROTECTED] -- Next runtime: -1 > [Error] :2:12: cvc-elt.1: Cannot find the declaration of element 'ofbiz-ser'. > 2008-03-09 18:54:43,555 (default-invoker-Thread-3839) [ > ServiceEcaRule.java:118:INFO ] Running Service ECA Service: > setCommEventComplete, triggered by rule on Service: sendEmailToContactList > 2008-03-09 18:54:43,595 (default-invoker-Thread-3839) [ > ServiceEcaRule.java:101:INFO ] For Service ECA > [updateCommunicationEvent] on [commit] got false for condition: > [null][][statusId][equals][null][COM_IN_PROGRESS][true][String][] > 2008-03-09 18:54:43,596 (default-invoker-Thread-3839) [ > ServiceEcaRule.java:101:INFO ] For Service ECA > [updateCommunicationEvent] on [commit] got false for condition: > [null][][statusId][equals][null][COM_IN_PROGRESS][true][String][] > 2008-03-09 18:54:43,597 (default-invoker-Thread-3839) [ > ServiceEcaRule.java:101:INFO ] For Service ECA > [updateCommunicationEvent] on [commit] got false for condition: > [null][][statusId][equals][null][COM_IN_PROGRESS][true][String][] > 2008-03-09 18:54:43,598 (default-invoker-Thread-3839) [ > ServiceEcaRule.java:101:INFO ] For Service ECA > [updateCommunicationEvent] on [commit] got false for condition: > [null][][statusId][equals][null][COM_IN_PROGRESS][true][String][] > 2008-03-09 18:54:47,053 (http-0.0.0.0-8080-Processor8) > [ControlEventListener.java:62 :INFO ] Creating session: > 5A05014119FC4FD6E87E94F4377F59AB.jvm1 > 2008-03-09 18:54:47,057 (http-0.0.0.0-8080-Processor8) [ > ControlServlet.java:93 :INFO ] The character encoding of the request > is: [null]. The character encoding we will use for the request and response > is: [UTF-8] > 2008-03-09 18:54:47,058 (http-0.0.0.0-8080-Processor8) [ > VisitHandler.java:221:INFO ] Found visitorId [null] in cookie > > > Alan > > ----- Original Message ---- > From: Jacques Le Roux <[EMAIL PROTECTED]> > To: [email protected] > Sent: Sunday, 9 March, 2008 9:09:46 PM > Subject: Re: Sending mails to contact lists > > Some logs could help (especially snippets around this job) > > Jacques > > From: "Alan Halley" <[EMAIL PROTECTED]> > Hi > > I am having problems with sendEmailToContactList. > > My operating system is CentOs. > > As I understand it this runs an Async service to send the emails. The > problem I have is that I never see the emails being sent. > > The sendEmailToContactList service runs and creates entries in > COMMUNICATION_EVENT and JOB_SAND_BOX table. > > The service then seems to assume that all is well and runs > setCommunicationEventComplete. > > I have run sendEmail service from webtools and this sends emails succesfully > so I have inferred my email is configured properly. > > I'm at a loss to understand how an asynchronous service operates i.e. what is > the workflow and what service picks up the job and > runs it (is it JobPoller?) > > The JobSandBox shows all the jobs as finished but I'm not fully clear n what > this means. > > Any help would be greatly appreciated. > > Thanks > > Alan Halley > > ----- Original Message ---- > From: Raj Saini <[EMAIL PROTECTED]> > To: [email protected] > Sent: Wednesday, 5 March, 2008 2:56:14 PM > Subject: Re: Sending mails to contact lists > > Hi Ray, > > Thanks a ton. I will give it a try. > > Thanks again, > > Raj > > Ray Barlow wrote: > >> Hi Raj, >> >> In the marketing app click on contact list, then find your list, then >> click on Comm Events and then Create New Contact List Comm Event should >> land you here: >> https://demo.hotwaxmedia.com/marketing/control/EditContactListCommEvent?contactListId=9000&DONE_PAGE=/marketing/control/ListContactList >> based on the trunk demo server. >> >> Set your from details and party roles (maybe N/A), fill your subject and >> content and click save. >> >> When you're happy with it change the status to "In-Progress" and click >> save again. The comm events should then start to trigger and the email >> flow, although you'll want to test it on a small list to start with. If >> the list is clean and processes through OK the status should >> automatically change to "Complete" when it is done but if there are >> badly formatted email addresses that can stick the status and you will >> need to manually mark as complete but you can review the logs to find >> the errors. >> >> Ray >> >> >> >> >> >> Raj Saini wrote: >> >> >>> Hi, >>> >>> I have created Announcement mailing list and now customers are >>> subscribing to this list. I want to send periodic email (Communication >>> Event) to the member of contact list. I searched on Google, Wiki and >>> mailing list archive but did not find any definite solution on sending >>> mails to the contact list subscribers.. >>> >>> Does such functionality exist in Ofbiz? If yes, can some one give a >>> small hint on how to achieve this? >>> >>> Thanks, >>> >>> Raj Saini >>> >>> >>> >>> >>> >> > > > > > > > > > > > > > >
