Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2005
    Location
    Kalamazoo, MI
    Posts
    65
    Plugin Contributions
    0

    help question Notifier for Contact Us Email?

    Hello. I'm trying to create an add-on that will grab the contents of a submitted Contact Us form and post it to an external API. I see notifiers for sending generic emails but not one for this form. But the list in the wiki also seems to be from a slightly older version. Is there a notifier that'll do what I need or a more current list? I know I could modify the script directly but thought a notifier would be a cleaner way to implement.
    J.J. Meddaugh
    http://www.atguys.com

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Notifier for Contact Us Email

    A couple options:

    If you want to do your API call before any processing of the submitted data takes place, use the 'NOTIFY_HEADER_START_CONTACT_US' hook. Do keep in mind that that hook point doesn't know whether the form has been submitted or not; it'll fire even when the contact page is merely being drawn, so you'll have to check for presence of POST data and do all your own validation before doing your API call.

    Or you could fire on 'NOTIFY_EMAIL_AFTER_SEND_WITH_ALL_PARAMS' which receives an array of parameters based on the data used to prepare the email. You'll want to check the $module parameter and fire only when it's equal to 'contact_us'. The array is: array($to_name, $to_email_address, $from_email_name, $from_email_address, $email_subject, $email_html, $text, $module, $ErrorInfo))
    .

    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.

 

 

Similar Threads

  1. v139h Drop-down menu for email subject line in contact form
    By lastmiracle in forum General Questions
    Replies: 5
    Last Post: 28 Feb 2012, 08:12 PM
  2. email address for Contact Us recipient
    By WilliamD in forum General Questions
    Replies: 2
    Last Post: 20 Apr 2011, 09:01 PM
  3. email Format for Received Mail via Contact Us
    By limelites in forum General Questions
    Replies: 1
    Last Post: 16 Mar 2010, 07:00 PM
  4. a different email id for contact us form
    By rajoo.sharma in forum General Questions
    Replies: 2
    Last Post: 6 Jan 2010, 03:53 PM

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