That would appear to be correct. As long as the "/includes/..." is under your /name-of-your-admin/ folder already.
ie: /name-of-your-admin-folder/includes/boxes/extra_boxes/email_history_tools_dhtml.php
Printable View
That would appear to be correct. As long as the "/includes/..." is under your /name-of-your-admin/ folder already.
ie: /name-of-your-admin-folder/includes/boxes/extra_boxes/email_history_tools_dhtml.php
Thank you, your suggestions helped and I got it working.
Muchos Thankos.
I have search through the thread and saw a few posting with $EMAIL_MESSAGE_HTML, only showing up in the HTML preview, However i did not see a clear fix for this. I am using ZenCart 1.38a and email achieve 1.4. HTML format shows up correctly header photo, who i sent the message to and footer and Spam disclaimer all shows up however email content is just $EMAIL_MESSAGE_HTML.
Any clear answers of a direction to the answer i may have missed.
Thank you
I have this mod running fine but would like it improved by a further filtering of the internal and external corresponances, perhaps even by adding a new column with color-coded or shaped indicators, and always showing the name and email address of the external party.
At the moment, only the recipient's name and email address is shown, which is not much help when an external email is received, as only the store name and email address are shown.
Or is there another way of achieving this beyond what I can see.
TIA
Um ... This mod has NOTHING to do with incoming email.
Zen Cart only logs OUTGOING email sent BY THE STORE.
It is NOT an email client or webmail manager etc.
The email archive functionality, including the viewer addon, is simply a tool to use to debug email problems.
Some people use it to packrat every email the store ever sends, but the downside of that unrecommended practice is that the email-archive section of the database will blow out in huge proportion, consuming insanely large amounts of space compared to actual order/product/customer data.
The best way to properly archive emails sent from your store is to simply have copies of those emails sent to an email inbox of your own which you've set up for that particular purpose. You can set those settings in Admin->Configuration->Email Options.
I see the light, thanks.
Although I have yet to go live, I have provided for the redirection of emails.
With respect to external mails, I was refering to the emails generated by the Contact_us and various forms cloned from the Band_signup mod, but which only give the Store email as recipient. At least these emails can be filtered using the dropdown provided.
As these advices are not that important, tt would also be convenient to be able to delete the entire archive (ie less than one month old) in one go.
People have been complaining about this for 2 years. I spent all morning trying to figure out why the code worked fine for customers, but not store owners. Why oh why do we just see $EMAIL_MESSAGE_HTML?!? I found it, and its not in the code at all. In Configuration->Email Options->Email Admin Format most store owners select TEXT so their order emails are fast, small and easy to print. But most store owners also have a user account to test with, and have its email option set to HTML so they can see the pretty messages that customers see. Somewhere (I refuse to even try to trace it) this creates a conflict, and trashed the resent email. Solution? Just change the user option to text as well and poof, no more messed up resent email. You might want to create a separate user to a different email to see what customer html emails look like.
While trying to figure this out, I also found a way to make the preview HTML work better, not right, but better. In admin/email_history.php after the line
add the lines:PHP Code:
$html_content = str_replace(array('<body>','</body>'),'',$html_content);
That clears up most of the mess.PHP Code:
$html_content = str_replace(array('body {'),'<body {',$html_content);
$html_content = str_replace(array('_/body_'),'</body>',$html_content);
$html_content = str_replace(array('_/html_'),'</html>',$html_content);
Ok, win some loose some, your right. So any idea how to clean it up to make it viewable? As I look more it wasn't the body { I wanted to fix, but the _style . Thats easy enough to replace, but all the other HTML tages are corrupted as well. Suggestions?