Announcement

Collapse
No announcement yet.

Using template-based emails from a module?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Using template-based emails from a module?

    Hi folks,

    I seem to write a lot of modules that send emails of various types, and each type usually requires a handful of admin settings and a call to SendEmail or MvSMTP. It's occurred to me that it might be easier to hook in to the Template-based Email module, as well as providing more features and flexibility to the users. I think some of you have done that already?

    I expect that there's a fairly easy way to trigger the template emails, by using an MvDO to call some function in the email module. I know that the module is in the LSK; but I'm hoping that someone here can give me some advice, or even a code snippet, that will save me some trial-and-error time. Anyone?

    Thanks --
    Kent Multer
    Magic Metal Productions
    http://TheMagicM.com
    * Web developer/designer
    * E-commerce and Miva
    * Author, The Official Miva Web Scripting Book -- available on-line:
    http://www.amazon.com/exec/obidos/IS...icmetalproducA

    #2
    Re: Using template-based emails from a module?

    From Dev:

    "Not a good idea."
    Thanks,

    Rick Wilson
    CEO
    Miva, Inc.
    [email protected]
    https://www.miva.com

    Comment


      #3
      Re: Using template-based emails from a module?

      A little more color:

      "If he wanted to trigger its emails through the not_order or other established API functions that would be fine, but calling non-API functions directly in the module is not guaranteed to work in future versions."
      Thanks,

      Rick Wilson
      CEO
      Miva, Inc.
      [email protected]
      https://www.miva.com

      Comment


        #4
        Re: Using template-based emails from a module?

        There's nothing easy about using Template Emails in any way divergent from the specific cases it exists to support. If you trigger off of order, account creation, or shipment events then you're OK, but forget about defining your own trigger. (That is definitely a wish list item for me.)

        That said, our Easy Review and Glendale's Rating and Reviews (I believe) both use template emails to send follow-on email after purchase.

        Dev: are there any plans to expand the template email system?
        Gordon Currie
        Phosphor Media - "Your Success is our Business"

        Improve Your Customer Service | Get MORE Customers | Edit Any Document Easily | Free Modules | Follow Us on Facebook
        phosphormedia.com

        Comment


          #5
          Re: Using template-based emails from a module?

          OK, thanks for the advice; like I wrote, I thought some other people were doing that already.
          Kent Multer
          Magic Metal Productions
          http://TheMagicM.com
          * Web developer/designer
          * E-commerce and Miva
          * Author, The Official Miva Web Scripting Book -- available on-line:
          http://www.amazon.com/exec/obidos/IS...icmetalproducA

          Comment

          Working...
          X