Re: email body text not included in email
Got it! If the email address to which the 404 emails are to be sent was used as a test-customer account email and that customer account uses HTML email settings, the email described by torvista will be sent. I've submitted v1.2.1 to the plugins area to correct the problem and describe how the HTML/TEXT emails will be sent.
Re: email body text not included in email
Well done! Excellent service!
Re: email body text not included in email
Thank you for your kind words! Here's the entire updated "update" function in the class module:
Code:
function update(&$class, $eventID, $paramsArray = array()) {
// BOF Send email to admin for 404 errors
$email_text = sprintf(EMAIL_PAGE_NOT_FOUND_CONTENT, $_SESSION['customers_host_address'], $_SESSION['customers_ip_address'], $_ENV['REQUEST_URI'])."\n\n";
$email_subject = EMAIL_PAGE_NOT_FOUND_SUBJECT;
$module = (SEND_404_ERRORS_EMAIL_ARCHIVE != '0') ? 'default' : 'no_archive';
$html_msg['EMAIL_SUBJECT'] = EMAIL_PAGE_NOT_FOUND_SUBJECT;
$html_msg['EMAIL_MESSAGE_HTML'] .= str_replace('\n','',$email_text);
zen_mail('', SEND_404_ERRORS_EMAILS_TO, $email_subject, $email_text, STORE_NAME, EMAIL_FROM, $html_msg, $module);
// EOF Send email to admin for 404 errors
}