thanks Hans
Hans Bakker sent the following on 4/17/2009 6:57 PM:
> Hi Bj
>
> have a look at applications/order/servicedef/secas.xml where you can see
> an example sending a "EmailTemplateSetting" notification using a seca.
>
> Regards,
> Hans
>
> On Fri, 2009-04-17 at 11:25 -0700, BJ Freeman wrote:
>> Also David was doing something about moving the mail services to the
>> framework and changing the way emails were generated.
>> The discussion was on the dev mailing list.
>> Email dated 2/15/2009 10:22 AM
>> Sorry for the digression, getting back to the point.... This is somewhat
>> related to the framework independence effort. One thing that has bugged
>> me for a while is that the email services are in the content component
>> which is in applications. I'm moving those services to the
>> framework/common component, and adding a new service called
>> "EmailTemplateSetting" and a service to go with it to send emails based
>> on these template settings so that creating email templates
>> (screen-based) and sending email from them will be easier going forward.
>>
>> I'll try to get this in soon, and maybe it will be an easier and cleaner
>> way to send the MyPortal emails without depending on the ProductStore
>> (which will help a lot when we start moving MyPortal into the framework).
>>
>>
>> Ashish Vijaywargiya sent the following on 4/17/2009 8:34 AM:
>>> Dear Benjamin,
>>>
>>> You may need to start looking by file DemoProduct.xml.
>>>
>>> <ProductStoreEmailSetting productStoreId="9000"
>>> emailType="PRDS_ODR_CONFIRM"
>>> bodyScreenLocation="component://ecommerce/widget/EmailOrderScreens.xml#OrderConfirmNotice"
>>> xslfoAttachScreenLocation="component://ecommerce/widget/EmailOrderScreens.xml#OrderConfirmNoticePdf"
>>> subject="OFBiz Demo - Order Confirmation #${orderId}" bccAddress="
>>> [email protected]" fromAddress="[email protected]"/>
>>>
>>> See the "xslfoAttachScreenLocation" field of the ProductStoreEmailSetting
>>> table. This field contains the location of Screen definition and that screen
>>> definition contains the *.fo.ftl file in general. And *.fo.ftl is nothing
>>> but the PDF that goes with the email.
>>>
>>> You can search code by email type "PRDS_ODR_CONFIRM". You will see the
>>> relevant code and would be able to find your way.
>>>
>>> The other important services that play important role are
>>> "sendMailFromScreen" & "sendEmail".
>>> Please trace the code for this services and let us know if you are unable to
>>> understand the flow.
>>>
>>> Rest comments inline :
>>>
>>> --
>>> Ashish
>>>
>>>
>>> On Fri, Apr 17, 2009 at 8:36 PM, benni23
>>> <[email protected]>wrote:
>>>
>>>> Hi,
>>>>
>>>> I have set up Ofbiz with SMTP relay and mail notification enabled. I
>>>> receive
>>>> email notifications for order placed in ecommerce and when the order is
>>>> invoiced/shipped. I also receive an email if I request a new password for
>>>> my
>>>> ecommerce login.
>>>>
>>>> Unfortunately, I do not receive an email when I subscribe to a newsletter
>>>> or
>>>> when I create an email communication event in the partymgr application. Did
>>>> I miss to configure something here? Are there any pitfalls?
>>>
>>> Please try to find out the reason by tracing the code (if you are a
>>> developer). I haven't tested it but you can figure out the issue with the
>>> help of details I provided above. After doing enough R&D if you don't get
>>> the way to solution then write email, me or someone else will help you to
>>> figure out the problem. FYI if you have done right settings for SMTP and you
>>> are getting emails for Order_Confirmation then you are fine.
>>>
>>>
>>>
>>>> Furthermore, I would like to know how I can get Ofbiz to attach the
>>>> generated invoice (PDF) to the mail that informs the customer that his
>>>> order
>>>> has been invoiced and shipped.
>>>>
>>>> regards,
>>>> Benjamin
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/Email-communication-events-tp23099485p23099485.html
>>>> Sent from the OFBiz - User mailing list archive at Nabble.com.
>>>>
>>>>