Copied to clipboard

Flag this post as spam?

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


  • fontanka16 24 posts 73 karma points
    Apr 18, 2012 @ 13:26
    fontanka16
    0

    How do i send teacommerce E-mails programmatically?

    Hi!

    I can not seem to find any guidance on how to send the emails in teacmommerce admin section programatically (within .NET).

    Can someone help me in the right direction?

  • Anders Burla 2560 posts 8256 karma points
    Apr 18, 2012 @ 15:08
    Anders Burla
    0

    Hi Theodor

    Its pretty simple - EmailTemplate.GetEmailTemplate( emailTemplateId.Value ).Send( Order.GetOrder( orderId ) );

    Kind regards
    Anders

  • fontanka16 24 posts 73 karma points
    Apr 18, 2012 @ 15:09
    fontanka16
    0

    Awesome! 

  • Rune Grønkjær 1371 posts 3102 karma points
    Apr 18, 2012 @ 18:41
    Rune Grønkjær
    0

    Hi Theodor,

    Just remember that both customer and the mails on the e-mail template will recieve the mail.

    If you want to remove some of the recievers or otherwise edit the e-mail, you can subscribe to the WebshopEvents.BeforeMailSend event and do you magic there.

    /Rune

  • fontanka16 24 posts 73 karma points
    Apr 18, 2012 @ 20:03
    fontanka16
    0

    Thank you for the note!

     

    I can see a lot of room for magic subscribing to that event.. 

Please Sign in or register to post replies

Write your reply to:

Draft