Ticket T368318
Visible to All Users

How to show a window with an email template

created 9 years ago

[DevExpress Support Team: CLONED FROM Q258610: Send a Report as an Email]
Hi Anatol,

Is there a sample application that contains below requirements?
- After clicking the simple action button, a popup window will show containing an email template (e.g. using razor view)
which contains the report as attachment.
- In popup window, the user can modify the message or add attachments. (like email editor)

Respectfully,
Carlo

Answers approved by DevExpress Support

created 9 years ago (modified 9 years ago)

Hello Carlo,

We do not have a ready sample for you, but it does not seem to be difficult to implement this functionality using the built-in XAF capabilities. To show this popup window, it is sufficient to create a non-persistent class with the properties you want to show in this window and show a DetailView of this class using a PopupWindowShowAction. See an example here: How to show a complex dialog.
To provide the capability to attach files to this object, use the File Attachments module.
Please let me know if you need further assistance.

    Show previous comments (1)
    Anatol (DevExpress) 9 years ago

      I apologize for missing this requirement.
      As far as I understand, you want to use the Razor View only to be able to edit the email templates markup. If so, the easiest way to implement this functionality is to show the Html Property Editor in the template's DetailView. Please refer to the HTML Property Editor Module topic for additional information.

      Apostolis Bekiaris (DevExpress) 9 years ago

        Hi Carlo,

        Our community project eXpandFramework has an Email module that integrates RazorEngine. To edit the template you may use any PropertyEditor such as the HtmlPropertyEditor or the Ace editor which is also intergrated in the eXpandframework. You may explore the  module implementation and the related EasyTests in the EmailTester solution. If you have any questions you may use the public framework forums.

        CE CE
        Charlemagne Escarro 9 years ago

          Hi Anatol, Apostolis,

          Thanks for the feedback.
          Will check and let you know if I have further concerns.

          Respectfully,
          Carlo

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.