Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2009
    Location
    Sparta, TN
    Posts
    158
    Plugin Contributions
    0

    Default Email subject not being received

    I'm using Zen cart 1.5.5f with no mods whatsoever.
    Server OS: Linux 2.6.32-896.16.1.lve1.4.51.el6.x86_64
    HTTP Server: Apache
    PHP Version: 7.0.32 (Zend: 3.0.0)
    My contact page has a required Subject line but the emails I receive display the default "Website Inquiry from My Site" Subject.
    How do I get it to display the customer entered Subject?

    Another user fixed this by upgrading to the latest Westminster template:
    Quote Originally Posted by Beav View Post
    I upgraded my template from westminster new v1.3 to 155_westminster_new. It was a template problem.
    Is there a way to do this with a vanilla install?

    Thank you!
    My store - closed 12/05/2023
    1.5.7d (upgraded from 1.5.7b), clone a template (cloned Responsive Classic Template), Sitemap XML v4.0, Square WebPay, PayPal Express Checkout, PHP Version: 7.4.29 (Zend: 3.4.0)

  2. #2
    Join Date
    Dec 2007
    Location
    Payson, AZ
    Posts
    1,076
    Plugin Contributions
    15

    Default Re: Email subject not being received

    Quote Originally Posted by VDecalS View Post
    I'm using Zen cart 1.5.5f with no mods whatsoever.
    Server OS: Linux 2.6.32-896.16.1.lve1.4.51.el6.x86_64
    HTTP Server: Apache
    PHP Version: 7.0.32 (Zend: 3.0.0)
    My contact page has a required Subject line but the emails I receive display the default "Website Inquiry from My Site" Subject.
    How do I get it to display the customer entered Subject?

    Another user fixed this by upgrading to the latest Westminster template:
    Is there a way to do this with a vanilla install?

    Thank you!
    Assuming you already added the input field to your form...
    clip from mine as a sample..
    Code:
     echo '<label for="subject">Subject:</label>';
       echo zen_draw_input_field('subject', $subject, ' id="subject" title="Enter Subject (no special characters)" required="required" aria-required="true" ');
    Edit includes/modules/pages/contact_us/header_php.php

    Around where the $name and $email_address is add another line to receive the posted subject.
    Code:
    $subject = zen_db_prepare_input(zen_sanitize_string($_POST['subject']));
    Then modify the send line from:
    Code:
    zen_mail($send_to_name, $send_to_email, EMAIL_SUBJECT, $text_message, $name, $email_address, $html_msg,'contact_us');
    To:
    Code:
    zen_mail($send_to_name, $send_to_email, $subject, $text_message, $name, $email_address, $html_msg,'contact_us');
    Last edited by davewest; 18 Nov 2018 at 05:53 AM.
    Dave
    Always forward thinking... Lost my mind!

 

 

Similar Threads

  1. v151 Contact Us Email Subject Line not appearing in Email
    By Capfka in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 25 Aug 2014, 10:43 AM
  2. Emails not being received
    By derek53 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 18 Jul 2009, 09:26 AM
  3. Downloadable products not being received
    By mycompleteness in forum Setting Up Categories, Products, Attributes
    Replies: 7
    Last Post: 4 Apr 2009, 06:01 PM
  4. Forgotten Password Email Not Being Received
    By Heyzoos in forum General Questions
    Replies: 2
    Last Post: 6 Jun 2008, 09:04 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