You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by aswath narayana <as...@gmail.com> on 2009/10/24 09:25:37 UTC

Re: customer registration email problem - r778358

I have submitted the patch to the issue OFBIZ-2631
O
Regards,
-Aswath

On Fri, Jun 19, 2009 at 1:54 PM, Rees Watkins <ga...@yahoo.co.uk> wrote:

> Hi
>
> I have created issue OFBIZ-2631
>
> I am afraid I am unable to fix this as this problem.
>
> Regards
> Rees
>
>
>
> ________________________________
> From: BJ Freeman <bj...@free-man.net>
> To: user@ofbiz.apache.org
> Sent: Thursday, 18 June, 2009 21:02:51
> Subject: Re: customer registration email problem - r778358
>
> as Adrian suggested contribute a patch
> here is how:
> http://docs.ofbiz.org/display/OFBADMIN/OFBiz+Contributors+Best+Practices
> welcome to the community
>
> Rees Watkins sent the following on 6/18/2009 9:33 AM:
> > Hi
> >
> > Currently it uses this pattern
> >
> >             FreeMarkerWorker.renderTemplate(templateUrl.toExternalForm(),
> templateData, writer);
> >
> > Should it follow the pattern in  sendMailFromScreen and use the pattern
> >
> >         ScreenRenderer screens = new ScreenRenderer(bodyWriter,
> screenContext, htmlScreenRenderer);
> >     ......
> >         screens.render(bodyScreenUri);
> >
> > Thanks
> > Rees
> >
> >
> >
> >
> > ________________________________
> > From: Adrian Crum <ad...@hlmksw.com>
> > To: user@ofbiz.apache.org
> > Sent: Thursday, 18 June, 2009 17:09:21
> > Subject: Re: customer registration email problem - r778358
> >
> > Rees,
> >
> > If you patch your local copy to use FlexibleLocation instead of UtilURL
> and it solves the problem, then please create a Jira issue and supply a
> patch so we can get it fixed.
> >
> > -Adrian
> >
> > Rees Watkins wrote:
> >> Hello
> >>
> >> Yes -  my store is setup exactly like the demo store. I get emails when
> a product is purchased and for "forgot password" etc.
> >>
> >> Registration email template is specified like this in demo store and my
> store:
> >>
> component://party/widget/partymgr/EmailPartyScreens.xml#CreatePartyNotification
> >>
> >> The registration email is generated by a call to
> "sendGenericNotificationEmail" in CustomerEvents.xml which eventually ends
> up in prepareNotification NotificationServices.java which attempts to
> resolve the email template using
> >> URL templateUrl = UtilURL.fromResource(templateName);
> >>
> >> All other email templates are resolved using a
> ComponentLocationResolver.
> >> I believe this is why the emails are not generated and why I get the
> error message below. I have spend some time on this and have made no
> progress. Any ideas would be fantastic.
> >>
> >> Cheers
> >> Rees
> >>
> >>
> >>
> >>
> >> ________________________________
> >> From: BJ Freeman <bj...@free-man.net>
> >> To: user@ofbiz.apache.org
> >> Sent: Thursday, 18 June, 2009 15:41:43
> >> Subject: Re: customer registration email problem
> >>
> >> do you have the emails defined in the productstore>emails
> >>
> >>
> >> Rees Watkins sent the following on 6/18/2009 2:38 AM:
> >>> Hi
> >>>
> >>> I am unable to get ofbiz to send an email on customer registration on
> my ecommerce site. I get the error below. It does not seem to be able to
> find the email template; even though it is in the location specified. I have
> set the store emails up using the demo site as a guide. I have tried to
> register as a customer on the ofbiz demo ecommerce site, but I do not get a
> registration confirmation email either. Any help will be gratefully
> received.
> >>>
> >>> Kind regards
> >>> Rees
> >>>
> >>> Problem getting the template URL:
> component://party/widget/partymgr/EmailPartyScreens.xml#CreatePartyNotification
> not found
> >>> prepareNotification failed: Problem finding template; see logs
> >>> Invalid email body; null is not allowed
> >>> Error in Service [sendGenericNotificationEmail]: Invalid email body;
> null is not allowed
> >>>
> >>>
> >>>
> >
> >
> >
> >
>
> --
> BJ Freeman
> http://www.businessesnetwork.com/automation
> http://bjfreeman.elance.com
>
> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
> Systems Integrator.
>
>
>
>

Re: customer registration email problem - r778358

Posted by Jacques Le Roux <ja...@les7arts.com>.
It's fixed at 829376  

Jacques

From: "aswath narayana" <as...@gmail.com>
>I have submitted the patch to the issue OFBIZ-2631
> O
> Regards,
> -Aswath
> 
> On Fri, Jun 19, 2009 at 1:54 PM, Rees Watkins <ga...@yahoo.co.uk> wrote:
> 
>> Hi
>>
>> I have created issue OFBIZ-2631
>>
>> I am afraid I am unable to fix this as this problem.
>>
>> Regards
>> Rees
>>
>>
>>
>> ________________________________
>> From: BJ Freeman <bj...@free-man.net>
>> To: user@ofbiz.apache.org
>> Sent: Thursday, 18 June, 2009 21:02:51
>> Subject: Re: customer registration email problem - r778358
>>
>> as Adrian suggested contribute a patch
>> here is how:
>> http://docs.ofbiz.org/display/OFBADMIN/OFBiz+Contributors+Best+Practices
>> welcome to the community
>>
>> Rees Watkins sent the following on 6/18/2009 9:33 AM:
>> > Hi
>> >
>> > Currently it uses this pattern
>> >
>> >             FreeMarkerWorker.renderTemplate(templateUrl.toExternalForm(),
>> templateData, writer);
>> >
>> > Should it follow the pattern in  sendMailFromScreen and use the pattern
>> >
>> >         ScreenRenderer screens = new ScreenRenderer(bodyWriter,
>> screenContext, htmlScreenRenderer);
>> >     ......
>> >         screens.render(bodyScreenUri);
>> >
>> > Thanks
>> > Rees
>> >
>> >
>> >
>> >
>> > ________________________________
>> > From: Adrian Crum <ad...@hlmksw.com>
>> > To: user@ofbiz.apache.org
>> > Sent: Thursday, 18 June, 2009 17:09:21
>> > Subject: Re: customer registration email problem - r778358
>> >
>> > Rees,
>> >
>> > If you patch your local copy to use FlexibleLocation instead of UtilURL
>> and it solves the problem, then please create a Jira issue and supply a
>> patch so we can get it fixed.
>> >
>> > -Adrian
>> >
>> > Rees Watkins wrote:
>> >> Hello
>> >>
>> >> Yes -  my store is setup exactly like the demo store. I get emails when
>> a product is purchased and for "forgot password" etc.
>> >>
>> >> Registration email template is specified like this in demo store and my
>> store:
>> >>
>> component://party/widget/partymgr/EmailPartyScreens.xml#CreatePartyNotification
>> >>
>> >> The registration email is generated by a call to
>> "sendGenericNotificationEmail" in CustomerEvents.xml which eventually ends
>> up in prepareNotification NotificationServices.java which attempts to
>> resolve the email template using
>> >> URL templateUrl = UtilURL.fromResource(templateName);
>> >>
>> >> All other email templates are resolved using a
>> ComponentLocationResolver.
>> >> I believe this is why the emails are not generated and why I get the
>> error message below. I have spend some time on this and have made no
>> progress. Any ideas would be fantastic.
>> >>
>> >> Cheers
>> >> Rees
>> >>
>> >>
>> >>
>> >>
>> >> ________________________________
>> >> From: BJ Freeman <bj...@free-man.net>
>> >> To: user@ofbiz.apache.org
>> >> Sent: Thursday, 18 June, 2009 15:41:43
>> >> Subject: Re: customer registration email problem
>> >>
>> >> do you have the emails defined in the productstore>emails
>> >>
>> >>
>> >> Rees Watkins sent the following on 6/18/2009 2:38 AM:
>> >>> Hi
>> >>>
>> >>> I am unable to get ofbiz to send an email on customer registration on
>> my ecommerce site. I get the error below. It does not seem to be able to
>> find the email template; even though it is in the location specified. I have
>> set the store emails up using the demo site as a guide. I have tried to
>> register as a customer on the ofbiz demo ecommerce site, but I do not get a
>> registration confirmation email either. Any help will be gratefully
>> received.
>> >>>
>> >>> Kind regards
>> >>> Rees
>> >>>
>> >>> Problem getting the template URL:
>> component://party/widget/partymgr/EmailPartyScreens.xml#CreatePartyNotification
>> not found
>> >>> prepareNotification failed: Problem finding template; see logs
>> >>> Invalid email body; null is not allowed
>> >>> Error in Service [sendGenericNotificationEmail]: Invalid email body;
>> null is not allowed
>> >>>
>> >>>
>> >>>
>> >
>> >
>> >
>> >
>>
>> --
>> BJ Freeman
>> http://www.businessesnetwork.com/automation
>> http://bjfreeman.elance.com
>>
>> http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
>> Systems Integrator.
>>
>>
>>
>>
>