Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2011
    Posts
    2
    Plugin Contributions
    0

    Default zen_mail() function (what includes?) and splitting newsletter signup to languagegroup

    Hi All,

    I experimented with the zen_mail() method using a require() to import the email_functions.php but never got it to send and could not get it to provide verbose output as to why not or any other logging either.

    I also tried to use a regular php mail() which worked and then queue after it log into the email archiving using the archiving function in the same email functions.php file when it told me the string sanitizing function was not defined indicating it was elsewhere in another .php file of general_functions.php but after using require() for that also got an "illegal access" message.

    I prefer to use the zen_mail() method to allow logging the free e-books link sent to people for customer/usage statistics purposes.

    It seems the functions libraries usage for zen cart are not as superficial/obvious as i hoped and the documentation for the zen_mail() as hard I look is lacking - does the zen cart manual available for sale have detail documentation on its usage?

    All I need to know is what files I have to import to invoke and use the zen_mail() function successfully.

    Also, I want to alter the newsletter (and/or newsletter subscribe contribution that I have installed) method signup to look for the language url variable and add that persons e-mail to a newsletter subscription group based on language which currently is german or english. Should this be fairly easy to do?

    I figured I could do this by copying the module I want to alter in the pages folder into another folder (e.g. subscribe) with another name (e.g. subscribeDE) then change the main_page=subscribe action URL based on a $_GET for the language variable into main_page=subscribeDE for german and main_page=subscribeEN for english but am worried it will orphan the modified function in the copied module folder from its includes or otherwise not work because its folder has another name.

    The website I am developing is at http://www.rohtopia.com/prototype/rohtopia.com if you need to look.

    Realise I am new to web design - I am smart but don't know a lot and all the work I done so far is self taught.

    I read there is some sort of auto include method in zen cart but could not understand when reading about it.

    Thanks,
    Rauli

  2. #2
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default Re: zen_mail() function (what includes?) and splitting newsletter signup to languageg

    zen_mail() will work without any special include/require statements as long as you're running it from inside a Zen Cart page. If you're running it from a script that's not part of Zen Cart, then you're going to have problems.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    Feb 2011
    Posts
    2
    Plugin Contributions
    0

    Default Re: zen_mail() function (what includes?) and splitting newsletter signup to languageg

    Thank you for the reply. Does the Zen Cart manual have detailed documentation about its functions to help me use them effectively and avoid silly mistakes like what I did here?

    Thanks,
    Rauli

 

 

Similar Threads

  1. Replies: 6
    Last Post: 25 Oct 2013, 10:43 PM
  2. v150 Newsletter Sidebox & Newsletter signup
    By meljen in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 28 Nov 2012, 09:44 PM
  3. Admin Email and Newsletter Function leaves blank page after upgrade to 1.3.8?
    By touchclothing in forum Upgrading from 1.3.x to 1.3.9
    Replies: 4
    Last Post: 12 Oct 2009, 08:14 PM
  4. Newsletter Signup
    By Rebelwax in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 29 Nov 2007, 04:45 PM
  5. Need SQL code checked for splitting up newsletter groups?
    By bradlawson in forum General Questions
    Replies: 1
    Last Post: 23 Nov 2007, 12:56 PM

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