Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • René Pjengaard 114 posts 674 karma points c-trib
    Feb 28, 2020 @ 09:52
    René Pjengaard
    0

    Can i preview email template

    Hi there,

    i have a quite complex email-template in one of our customers solution, and before i start editing it, i wan´t to be able to preview my changes. Is there a way to preview a email-template? Could be cool if it could be based on a specific ordre as well.

    I have look in the documentation, but can´t seem to find anything.

    We use TeaCommerce 4.0

    regards René

  • René Pjengaard 114 posts 674 karma points c-trib
    Feb 28, 2020 @ 10:21
    René Pjengaard
    100

    Found a solution where i made a apicontroller and send testmail with this method:

    [HttpGet]
        public void SendTestMail(string orderGuid, string email)
        {
            var order = TC.GetOrder(SkyConstants.StoreId, Guid.Parse(orderGuid));
            var emailTemplate = EmailTemplateService.Instance.Get(SkyConstants.StoreId, 1);
            emailTemplate.Send(order, email);
        }
    
  • Matt Brailsford 2403 posts 11654 karma points MVP 6x c-trib
    Feb 28, 2020 @ 11:11
    Matt Brailsford
    1

    Hi Rene,

    The only thing we have, which is what I use, is within an order, you can go to the email tab, select an email and click "Send Email" to send a test email. Just make sure the order's email address is your email address 😁

    Hope this helps

    Matt

Please Sign in or register to post replies

Write your reply to:

Draft