Results 1 to 10 of 10
  1. #1
    Join Date
    Aug 2007
    Posts
    24
    Plugin Contributions
    0

    Default How do I trigger test HTML emails?

    Hi there,

    I would like to redesign my customer HTML emails with a new layout. Is there a way that I can trigger test emails during development for each of the email templates under the /email directory? For example low_stock, password_forgotten, welcome etc. I'm thinking of a plugin or something that I can use to set up a test scenario that will trigger a given email?

    Many thanks.

    Zen-cart version:1.5.1
    Last upgrade: 6 Jan 2014 from 1.3.9 following official upgrade method.
    Plugins: Ceon URI mapping
    Install method: FTP upload and run zc_install
    PHP: 5.2.17
    Site: http://www.funkyhand.com
    zzfozz

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,024
    Plugin Contributions
    3

    Default Re: How do I trigger test HTML emails?

    I'm not sure I understand the question, but I just create a test customer whoi selects HTML emails and take him through the various scenarios.

  3. #3
    Join Date
    Aug 2007
    Posts
    24
    Plugin Contributions
    0

    Default Re: How do I trigger test HTML emails?

    If you're working on the welcome email do you create a new test customer each time you want to try out you're latest line of markup or CSS? And what about product notification and such like? Do you have to change the status of a product each time you want to trigger an email to see your change?
    Last edited by zzfozz; 26 Jan 2014 at 05:20 PM.
    zzfozz

  4. #4
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: How do I trigger test HTML emails?

    Since I just went through this exercise (updating the look and feel of the various e-mail templates) I get the question.. but there is no "email testing" module (though this is a very good idea)..

    However you will see that there is a "general" layout to the e-mail templates. So while you may not be able to test the new customer e-mail without creating a new customer, you can modify other e-mail templates you can test much easier (like the new order or order status update) and based on how those look, you can modify the new customer e-mail template.
    Last edited by DivaVocals; 27 Jan 2014 at 02:50 AM.
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  5. #5
    Join Date
    Aug 2007
    Posts
    24
    Plugin Contributions
    0

    Default Re: How do I trigger test HTML emails?

    Thanks for your reply, it does strike me that it would be a useful plugin, maybe if become more proficient at zen-cart developments I'll have a stab myself. In the meanwhile I commented out the filetype restrictions from /email/.htaccess (on my dev server, obviously) and then just accessed each email template in my browser. It outputs the $variable rather than the text values but at least I can view me layout changes as I go without creating/deleting accounts etc.
    zzfozz

  6. #6
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: How do I trigger test HTML emails?

    How they appear in the browser may be slighly different than how they look in an e-mail client.. so there is SOME value in doing the test emails..

    Quote Originally Posted by zzfozz View Post
    Thanks for your reply, it does strike me that it would be a useful plugin, maybe if become more proficient at zen-cart developments I'll have a stab myself. In the meanwhile I commented out the filetype restrictions from /email/.htaccess (on my dev server, obviously) and then just accessed each email template in my browser. It outputs the $variable rather than the text values but at least I can view me layout changes as I go without creating/deleting accounts etc.
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  7. #7
    Join Date
    Aug 2007
    Posts
    24
    Plugin Contributions
    0

    Default Re: How do I trigger test HTML emails?

    Yes, understood. It'll help with development but it's not a replacement for cross client testing of the actual emails.
    zzfozz

  8. #8
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,589
    Plugin Contributions
    30

    Default Re: How do I trigger test HTML emails?

    the calling function is like this:
    PHP Code:
    zen_mail($customers_name$to$subject$text_messageSTORE_NAME$sender$html_msg'contact_us'); 
    so stuff this in a file somewhere, define the variables and call it.
    Search for a use of the zen_mail function in other files to get an idea how to build the $html_msg which is an array.
    Note that some templates use more html_msg array parameters.
    Change the last parameter to select the email template file you want to test.
    Steve
    github.com/torvista: Spanish Language Pack, Google reCaptcha, Structured Data, Multiple Copy-Move-Delete, Image Checker, BackupMySQL Admin/Auto...

  9. #9
    Join Date
    Aug 2007
    Posts
    24
    Plugin Contributions
    0

    Default Re: How do I trigger test HTML emails?

    Ah-ha this looks like just what I'm after. Muchos gracias.
    zzfozz

  10. #10
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,023
    Plugin Contributions
    32

    Default Re: How do I trigger test HTML emails?

    Does anyone mind explaining for those of us playing along at home what this means and how to use it..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

 

 

Similar Threads

  1. v151 BCC on order emails to trigger auto-responder system?
    By kitcorsa in forum General Questions
    Replies: 10
    Last Post: 16 Oct 2014, 02:27 PM
  2. v150 HTML Email layouts, how to test?
    By Rodders in forum General Questions
    Replies: 1
    Last Post: 25 Jun 2012, 05:18 PM
  3. how to create html newsletters/emails
    By mediathing in forum General Questions
    Replies: 2
    Last Post: 8 Jul 2006, 01:23 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR