Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2004
    Posts
    1,045
    Plugin Contributions
    0

    Default $email_message_html

    I have searched the forum and tried all solutions posted, but none have solved the problem in my case.

    I have created a basic layaway payment mod (more on that later ;) ), it e-mails some info to the admin after the customer places the order in addition to the standard order e-mail. It only has 2 files: includes/modules/payment/layaway.php and includes/languages/english/modules/payment/layaway.php. When the e-mails are sent, the e-mail body does not show up, instead it says this:
    $EMAIL_MESSAGE_HTML

    Can someone help me with this? I've been playing around for several hours now trying to fix it with no luck

    Here are the contents of the includes/modules/payment/layaway.php file:

    function after_process() {
    global $HTTP_POST_VARS, $insert_id;

    if ( (defined('MODULE_PAYMENT_LAYAWAY_EMAIL')) && (zen_validate_email(MODULE_PAYMENT_LAYAWAY_EMAIL)) ) {

    $text_message = 'Order #' . $insert_id . "\n" . MODULE_PAYMENT_LAYAWAY_TEXT_EXTRA_INFO . "\n\nCredit Card Info:\n===============\n" . zen_db_prepare_input($HTTP_POST_VARS['cardholder']) . "\n" . zen_db_prepare_input($HTTP_POST_VARS['cardnumber']) . "\n" . zen_db_prepare_input($_POST['cc_expires_month'] . $_POST['cc_expires_year']) . "\n" . MODULE_PAYMENT_LAYAWAY_TEXT_CVV_NUMBER . zen_db_prepare_input($HTTP_POST_VARS['cvvnumber']) . "\n\nPaypal Info:\n==========\n" . MODULE_PAYMENT_LAYAWAY_TEXT_PAYPAL_ADDRESS . zen_db_prepare_input($HTTP_POST_VARS['paypaladdress']);

    zen_mail('STORE_OWNER', MODULE_PAYMENT_LAYAWAY_EMAIL, 'Layaway Info for Order #' . $insert_id, $text_message, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS);
    }
    }
    Thanks!
    Danielle

  2. #2
    Join Date
    Oct 2004
    Posts
    1,045
    Plugin Contributions
    0

    Default Re: $email_message_html

    Also, I don't know if it makes things any easier, but it is totally fine if the e-mail can only be done in text format as opposed to HTML. However, I do need the HTML e-mails turned on for the rest of the store still. But if there is a way to just change this e-mail to a text e-mail that would be perfect
    Danielle

 

 

Similar Threads

  1. EXTRA CC ORDER info = $EMAIL_MESSAGE_HTML
    By MeltDown in forum General Questions
    Replies: 14
    Last Post: 12 Apr 2007, 08:33 AM
  2. $email_message_html
    By Doodlebuckets in forum General Questions
    Replies: 4
    Last Post: 24 Mar 2007, 11:13 AM

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