-
Email Archive Manager
Hello there, i just installed this modual..
All seems to work just fine. however i do have this one error when i try and delete emails older than 6months old. I also tried to DEL orders older than 12 months, but get the same error
---------------------------------
Warning: Cannot modify header information - headers already sent by (output started at /homepages/23/d173543998/htdocs/admin/email_history.php:62) in /homepages/23/d173543998/htdocs/admin/includes/functions/general.php on line 34
----------------------------------------
can anyone help me
i couldnt find an active topic for this contrib. if im posting in the wrong spot, please inform me.
thanks in advance
Benjamin
-
Re: Email Archive Search
It seems that the purge features of the contribution should probably be handled at the top of the file instead of in the middle.
Either way, I suspect, based on the code, that when you received that error, the delete/purge you request has actually been completed, and it was simply attempting to redraw the page and show you the success message. (but, due to order-of-operations, it failed because content was already showing on the screen.)
Something to note for the next version ...
-
Re: Email Archive Search
I've just installed this contribution, and I've this error too.
Anyone have the solution?
-
Re: Email Archive Search
I have this same error message, I have tried to trim anything older than 1 month.
I continue to get the same error, and nothing has been trimmed or cut from the email archives...
-
Re: Email Archive Search
The contribution was updated last week with a bugfix related to purging records. Are you using the updated edition?
-
Re: Email Archive Search
this is a super utility - only problem is - how can I delete individual e-mails. Thanks in advance.
-
Re: Email Archive Search
Thanks so much for the contrib!! I am using it to try and figure out why, suddenly, no emails seem to be getting sent from my cart. I tested by sending an email via "contact us" and then went to this utility. It shows up in the email archive search, but when I try to resend I get this error message:
Quote:
Warning: Invalid argument supplied for foreach() in xxx/shopping/includes/functions/functions_email.php on line 342
Warning: Cannot modify header information - headers already sent by (output started at xxx/shopping/includes/functions/functions_email.php:342) in xxx/shopping/admin/includes/functions/general.php on line 34
Any idea what that means? And could it have anything to do with why my emails aren't going through as well?
TIA
Signs
-
Re: Email Archive Search
Signs,
Getting that error does not necessarily explain a problem with sending emails.
That error should not be happening, but will only happen if you are attempting to re-send an email that has no HTML-based component tied to it.
As to your email problems with "not sending", please discuss those in another thread, and leave this one for the email archive tool. You may open another topic for this purpose. I suggest you start by upgrading from v1.3.0.2 to at least v1.3.6 as a starting point. The line-number in your post above suggests you're using an out-of-date set of code.
-
Re: Email Archive Search
I really like this contribution. but, somehow, it doesn't wor on the one month delete. any ideas?
-
Re: Email Archive Search
My apologies, I was searching for the error in email archive search that I was experiencing and posted to another thread about it so this may count as a duplicate, if so sorry. I snipped and put it here hoping it would be found.
I just put this module in as per instructions, it works fine when previewing the emails in text, but in html it shows all the code:
"<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <base href="MySiteAddress.Com" /> <style type="text/css"> body {background-color:#ffffff; color:#000000; font-family:Verdana, Arial, Helvetica, sans-serif; text-align:center;} a:link {color:#0066cc;} a:hover {background-color:#eeeecc; color:#0066cc;} a:visited {color:#0066cc;} .holder {background-color:#f9f9f9;...................."
And when I resend the email I get the same error as I saw in A previous post:
"
MYLOGO (image is missing I get an X)
$EMAIL_SUBJECT
$EMAIL_MESSAGE_HTML
$EMAIL_FOOTER_COPYRIGHT
$EMAIL_DISCLAIMER
$EMAIL_SPAM_DISCLAIMER
$EXTRA_INFO
"
I've looked through my settings and html mime email is enabled.
I've read through the code for email_history.php but can't find any obvious errors. (As if a newbie like me could :) I don't get any errors or issues from the resend, the mailserver, the spam killer or antivirus filters, etc,...
I've tried the html template, checked my variables, Etc,... as described in the previous posts but I still get the $EMAIL_* in html format. When I send the original email ^ as if placing or updating the order, I get a nice html format with image and message, just as would be expected.
I'm wondering if it's something in the extraction of the message from the database, because I see the email excerpt looks correct as far as the message data goes (when looking in the email archive function) ^ but the email looks to be going out without the data from the original email inserted.
BTW, I'm using ZC 1.3.6, MySQL 5.0.20, PHP 5.1.6, Apache 2.2,...
If any other info would help... I'd be happy to solve this one.
Thanks,
SnowBlind
-
Re: Email Archive Search
Quote:
Originally Posted by
2004g35
this is a super utility - only problem is - how can I delete individual e-mails. Thanks in advance.
I just added this feature; code will be released on 2/18.
Scott
-
Re: Email Archive Search
The new version with per message delete is now available.
Scott
-
Re: Email Archive Search
I installed the contrib but its not showing any emails... even though i have sent quite a few.
Zen version 1.3.7
email archive version 1.2
-
Re: Email Archive Search
You probably haven't turned on archiving. It's under configuration->email in admin.
-
Re: Email Archive Search
Cheerz for that Scott...
Maybe an idea to add that into the installation instructions to help dunder hieds like me to get it working.
-
Re: Email Archive Search
This is an excellent suggestion. I don't know if or when I'll update this contribution again, but if I do, I'll add this to the list.
Scott
-
Re: Email Archive Search
A fix has been submitted for the problem reported in
http://www.zen-cart.com/forum/showth...462#post365462
but of course, I forgot to update the help as suggested. After I submitted the change, I realized this and I updated my local copy, so the next time I change this mod, the help will be updated.
I renamed this contribution "Email Archive Manager," which I think is a more accurate representation of what it does now. Thanks to the folks who reported this bug.
Scott
-
Re: Email Archive Search (Archive Manager)
Hi all
I was using old version of the mod and alls was fine, but with the new version (email archive manager 1.3), i can view sent messages in txt format, but not in html. I see:
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <base href="http://www.xxxs.com/shop/" /> <style type="text/css"> body {background-color:#ffffff; color:#000000; font-family:Verdana, Arial, Helvetica, sans-serif; text-align:center;} a:link {color:#0066cc;} a:hover {background-color:#eeeecc; color:#0066cc;} a:visited {color:#0066cc;} .holder {background-color:#f9f9f9; border:1px solid #9a9a9a; font-size:9px; text-align:left; width:550px;} .header {font-size:10px; padding:0px; width:550px;} .content {font-size:10px; padding:5px; width:550px;} .footer {border-top:1px solid #9a9a9a; font-size:9px; margin-top:10px; text-align:center; width:550px;} .disclaimer {background-color:#f9f9f9; border:1px solid #cccccc; font-size:10px; margin-top:10px; padding:5px; width:550px;} .disclaimer1 {color:#666666; padding:5px;} .disclaimer1 a:link {color:#666666;} .disclaimer1 a:visited {color:#666666;} .disclaimer2 {color:#666666; padding:5px;} .copyright {border-bottom:0px solid #9a9a9a; padding:5px;} </style> </head> <body> <div class="holder"> <!-- Header Section --> <div class="header"> <img src="email/header.jpg" alt="logo" /> </div> <!-- ,
,etc,...
I think this is not afecting sending emails but, what can i do to resolve it?
-
Re: Email Archive Search (Archive Manager)
A fix was just submitted for this problem. Look for version 1.4 of this mod in a few days.
Scott
-
Re: Email Archive Search (Archive Manager)
Many thanks, i will test it now.
-
Re: Email Archive Search (Archive Manager)
Quote:
Originally Posted by
tonibarcelona
Many thanks, i will test it now.
I installed tha last version 1.4 of email archive manager. the problem is that when I resend a message , it send a message with only the statements and no contents,
I set mime in admin, so I get an email with html (so borders, gray text area etc, with these words:
$EMAIL_SUBJECT
$EMAIL_MESSAGE_HTML$EMAIL_FOOTER_COPYRIGHT$EMAIL_DISCLAIMER
$EMAIL_SPAM_DISCLAIMER
and nothing more.
I have the same problem when I send a form from frontpage of the shop, but in this last case, I get well the header and footer of the email, and instead of the message content, I see this line:
$EMAIL_MESSAGE_HTML
any help?
-
Re: Email Archive Search (Archive Manager)
What version of Zen Cart ?
What other addons are installed?
What files are in your /email folder?
-
Re: Email Archive Search (Archive Manager)
Quote:
Originally Posted by
DrByte
What version of Zen Cart ?
What other addons are installed?
What files are in your /email folder?
i HAVE ZEN 137, I installed also
- email export module.
- add customer
- user tracking
super order
easy populate (althogh I can't use it and I didn't get support on my simple question about sql and utf-8 when I export and see the meaningless characters!!!)
cross sell
quick update
- back database
- store manager
in email directory I have:
1- checkout
2- contact us
3- copoun
4- default
5- direct_email
6- gv_queue
7- gv_send
8- low_stock
9- newsletters
10- order_status
11- password_forgotten
12- product_norification
13- tell _ a_friend
14- welcome
15- index.html
--------------
when the client purchase, he get html order confirmation email.
also welcome email is okay.
only in resend of an email in admin archive manager and in custom form, they don't send the content of the email, but only the statements like as what they are seen in the tpl.AAAAA.html of the respective email in email folder are displayed.
------------
this is an example of the custom form email:(email is in html )
Sign-up from Bionic Banana!
$EMAIL_MESSAGE_HTML
copy right 2005 (c) .blabla bla of my footer US CAN-SPAM
-------------------
this is an example of resend message although in admin the content of the message is complete:
$EMAIL_SUBJECT
$EMAIL_MESSAGE_HTML
$EMAIL_FOOTER_COPYRIGHT$EMAIL_DISCLAIMER
$EMAIL_SPAM_DISCLAIMER$EXTRA_INFO
------------
I have replaced in email default the $EMAIL_MESSAGE_HTML with $email_message_contents as I saw in custom form, but still nochange, in received email Oit was just $email_message_contents statement instead of content.
thanks again for your fast reply
-
Re: Email Archive Search (Archive Manager)
Do ALL emails re-sent from the Archive program have this problem, or ONLY the band-signup ones ?
-
Re: Email Archive Search (Archive Manager)
all messages from admin archive have this problem.
but all messages from frontshop are received in order except of band-singup; while the filled fields of the form of band-signup form is seen in admin email archive;
-
Re: Email Archive Search (Archive Manager)
I suggest you work out the obsolete band_signup code problems (perhaps by using the updated code I just posted in that thread) before trying to resolve an archive manager problem, because I think your problem is the outdated code.
-
Re: Email Archive Search (Archive Manager)
I am having an issue. ZC1.3.7. EZ Populate, Database backup, ImageHandler2. Mime email.
I installed the E-mail archive on two sites and get the same results with both.
When I resend an HTML (or text) e-mail I just get the CSS/Template with no data.
Source (from e-mail).
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=$CHARSET" /> <base href="$BASE_HREF" />
<style type="text/css"> body {background-color:#ffffff; color:#000000; font-family:Verdana, Arial, Helvetica, sans-serif; text-align:center;} a:link {color:#0066cc;} a:hover {background-color:#eeeecc; color:#0066cc;} a:visited {color:#0066cc;} .holder {background-color:#f9f9f9; border:1px solid #9a9a9a; font-size:9px; text-align:left; width:550px;} .header {font-size:10px; padding:0px; width:550px;} .content {font-size:10px; padding:5px; width:550px;} .footer {border-top:1px solid #9a9a9a; font-size:9px; margin-top:10px; text-align:center; width:550px;} .extra-info {background-color:#cccc99; border:1px solid #9a9a9a; font-size:10px; margin-top:10px; padding:5px; width:550px;} .extra-info-bold {font-weight:bold;} .disclaimer {background-color:#f9f9f9; border:1px solid #cccccc; font-size:10px; margin-top:10px; padding:5px; width:550px;} .disclaimer1 {color:#666666; padding:5px;} .disclaimer1 a:link {color:#666666;} .disclaimer1 a:visited {color:#666666;} .disclaimer2 {color:#666666; padding:5px;} .copyright {border-bottom:0px solid #9a9a9a; padding:5px;} </style>
</head>
<body> <div class="holder">
<!-- Header Section --> <div class="header"> <img src="email/header.jpg" alt="logo" /> </div>
<!-- Content Section --> <div class="content"> <div>$EMAIL_SUBJECT</div> <div>$EMAIL_MESSAGE_HTML</div> </div>
<!-- Footer Section --> <div class="footer"> <div class="copyright">$EMAIL_FOOTER_COPYRIGHT</div> </div>
</div> <div class="disclaimer"> <div class="disclaimer1">$EMAIL_DISCLAIMER</div> <div class="disclaimer2">$EMAIL_SPAM_DISCLAIMER</div> </div> $EXTRA_INFO </body> </html>
So it seems to be failing to "populate" all the variables! I tried going to my other site, same issue (sites are both intended to have the same code base).
When I "Preview HTML" it is also strange, all the CSS is showing! When I "Preview Text" it looks fine.
Any thoughts/suggestions?
-
Re: Email Archive Search (Archive Manager)
I don't believe it saves resent messages.
-
Re: Email Archive Search (Archive Manager)
#1 Sorry to be trouble, I am not sure I understand your response. I have turned on the feature to archive e-mails. When I resend it is failing to populate the data.
ANY ideas? Have you run into this issue at all?
#2 I am considering hiring you for some help. I have a unique pricing structure I may need some help with! I reviewed your website! Is this (email archive) something that maybe I can pay you to diagnose when I am ready for the other issues?
Thanks in advance for your help!
-
Re: Email Archive Search (Archive Manager)
Re: #1 - it doesn't save resent messages. This behavior could be changed,
of course, but right now it doesn't.
Re: #2 - please PM me.
Scott
-
Re: Email Archive Search (Archive Manager)
Hi Firstly can I say what a great contribution. However, I have installed it - 1.4 on an almost vanilla install (1.38a)and ran into some problems with both the HTML preview and the resend
For the html preview I was seeing all the css formatting due to an incorrectly closed style tag. A bit of digging also reviled several other html tags not being correctly dealt with in the translation for the way all the > and < are stored in the database (eg _TAG ParametersOptional _ text _/TAG_ ) and the subsequent display
the lines
PHP Code:
//$html_content = str_replace('__','><',$html_content);
$html_content = str_replace('_html','<html',$html_content);
$html_content = str_replace('_meta','<meta',$html_content); //DSA
$html_content = str_replace('_style','<style',$html_content); //DSA
and various others in the same section (div, table etc) were missing bits of the _ to < or > conversion.
To get my emails to display properly I had to add other tags like UL and TH to the list of $html_content replace statements. That should sort out a few of the preview problems that others have reported.
For the resend I realised that it needed to go through a similar process as for the display. It would be easy enough to make that whole conversion a function and add it to the resend. The thought of all the other possible html tags that would need decoding was tooo much, so at that point I decided to make a very small tweak to the includes/functions/functions_email.php file and not sanitise the storage of the html and store it as it was sent out. Then the resend could use a very simple email_template_archive.html file and the resend works a treat for html emails. This also means the resent emails are recorded in the archive - which someone was asking about
-
Re: Email Archive Search (Archive Manager)
Thanks for your input. If you would like to go ahead and update the contribution, that would be great. Just be sure to clearly document any modifications to core files that can't be overridden.
-
Re: Email Archive Search (Archive Manager)
I'm relatively new to Zen Cart and I don't know how to update a contribution.
Also I'm not entirely sure about the idea of storing raw html in the database from a security point of view. I think all the data being sent out via email has already been sanitised and so the only html in there should be what has been added by the email processing in the first place. What do you think?
-
Re: Email Archive Search (Archive Manager)
Go to the download Email Archive Manager page in the downloads area. There's a link at the bottom of the page that lets you "update this contribution." You'll have to create an account.
This contribution is not being actively managed and needs a product manager. You seem like the man for the job! Go for it!
-
Re: Email Archive Search (Archive Manager)
I've installed Email Archive Manager 1.4 on ZC 1.3.7.
When I call : Tools > Email Archive Manager, I'm receiving this message :
Sorry, your security clearance does not allow you to access this resource.
Please contact your site administrator if you believe this to be incorrect.
Sorry for any inconvenience.
What's the problem ? What's the solution
-
Re: Email Archive Search (Archive Manager)
You've likely installed an Admin Profiles addon, and haven't granted yourself sufficient security clearance to use the email module.
Check with the addon's operational instructions to determine how best to grant yourself clearance.
-
Re: Email Archive Search (Archive Manager)
Quote:
Originally Posted by
DrByte
You've likely installed an Admin Profiles addon, and haven't granted yourself sufficient security clearance to use the email module.
Check with the addon's operational instructions to determine how best to grant yourself clearance.
Thanks for your answer.
Unfortunately, I didn't see anything in addon's operational instructions about grant clearance.
Do you have an other tip ?
Thanks
-
Re: Email Archive Search (Archive Manager)
Quote:
Originally Posted by
DrByte
You've likely installed an Admin Profiles addon, and haven't granted yourself sufficient security clearance to use the email module.
Check with the addon's operational instructions to determine how best to grant yourself clearance.
Quote:
Originally Posted by
imak
Thanks for your answer.
Unfortunately, I didn't see anything in addon's operational instructions about grant clearance.
Do you have an other tip ?
Thanks
Admin->Tools->Admin Settings. Click on your username. Click on Permissions. Grant access.
If you're having trouble with that, I recommend that you speak with your store administrator.
-
Re: Email Archive Search (Archive Manager)
Quote:
Originally Posted by
DrByte
Admin->Tools->Admin Settings. Click on your username. Click on Permissions. Grant access.
If you're having trouble with that, I recommend that you speak with your store administrator.
:oops:
Thanks Dr,
I'm the store admin and I have recently installed Admin Profile module. I forgot to checked the email history box. Sorry.
It's done now and all working well. Thanks again.
BTW, It is possible to see the header envelope of the messages ?
-
Re: Email Archive Search (Archive Manager)
I installed the mod and enabled it Email Archive Manager --> True
But I don't see how to access it. I see someone else say its under tools but I see nothing there about it?
-
Re: Email Archive Search (Archive Manager)
It should be under tools/email archive manager. You must go to configuration/email options/ to enable email archiving. Then send a test email to begin populating the archive table. You should see something then.
-
Re: Email Archive Search (Archive Manager)
Quote:
Originally Posted by
swguy
It should be under tools/email archive manager. You must go to configuration/email options/ to enable email archiving. Then send a test email to begin populating the archive table. You should see something then.
Had already set it in config email options. Sent a couple test emails nothing. Went in check was still enabled so I saved it again to see sent some more emails still nothing shows up?
-
Re: Email Archive Search (Archive Manager)
Another great contribution from The Team.
A question, does it also archive newsletters?
Jacque
-
Re: Email Archive Search (Archive Manager)
I cannot take credit for the entirety of this work; I've just been maintaining it lately.
It only does email.
Scott
-
Re: Email Archive Search (Archive Manager)
Answered my own question, yes it does.
Jacque
-
Re: Email Archive Search (Archive Manager)
Hey Scott, good to hear from you again. How's Florida?
Another question;
How can I delete the e-mails other than than the Newsletters? I.E. Welcome e-mails.
Jacque
-
Re: Email Archive Search (Archive Manager)
Ok, I've got it. This doesn't effect the newsletters at all.
I'd like a Newsletters manager. Is it is as simple as finding and replacing e-mail or email with newsletters in the appropriate files?
-
Re: Email Archive Search (Archive Manager)
If you use my MailChimp newsletter contribution, this is taken care of for you.
thatsoftwareguy.com/zencart_mailchimp.html
-
Re: Email Archive Search (Archive Manager)
Hmm, I'll have to look at that more. I do like the idea of it. I'm currently at the $30/month rate and rising fast.
Though I do kinda prefer having it on my own server.
-
Re: Email Archive Search (Archive Manager)
They wrote a really interesting white paper on email marketing which I commend to you. You'll see that they have deep subject matter expertise.
-
Re: Email Archive Search (Archive Manager)
Quote:
Originally Posted by
swguy
They wrote a really interesting white paper on email marketing which I commend to you. You'll see that they have deep subject matter expertise.
I like their ideas and papers but don't believe it'll work for me. I'll see if I can modify the e-mail archive and make it work for a newsletter archive.
If I can I'll post it for cleanup and sharing.
jacque
-
Re: Email Archive Search (Archive Manager)
Is there a way to change the Email Archive Manager, so that I can trim it every WEEK, instead of once a month?
I find that my archive, by the end of a 30 day period can be as high as 100MB...and need to have a shorter period, so I can trim those emails more often.
-
Re: Email Archive Search (Archive Manager)
You'd have to write code to do this; it's not built in at the moment.
-
Re: Email Archive Search (Archive Manager)
Can I manually do it in the database? if so, would it be an easy process or dangerous process?
(in other words, i'm good at using the GUI interface press here buttons, but codes, databases and all that scare me!)
The reason i'm looking to do this is because my store is LARGE in my standards....500+ orders a month, about 3000 products, 98% of them download files. So anyway I can start trimming that database, i'm told the better it will start running.
As it is, when we get over 70+ users on there at one time (between the store, forum, gallery, and designer blogs) we have a site that is on a dedicated server that is once again crawling, with parse times over 20 seconds...
-
Re: Email Archive Search (Archive Manager)
Do you *need* to be the emails in the first place?
-
Re: Email Archive Search (Archive Manager)
I ONLY use them for retrieving reset passwords for my customers...as i have had times when they email me complaining they couldn't remember their password, so they request it to be reset, but that they never got their email back with a new password (typically this is because it got filtered out in their bulk mail box...)
So I find it handy to go to the archives, find the email that was generated to them, then copy and paste it in a new email and send it to them.
While I don't use it often, i use it often enough to not want to get rid of the feature entirely.
-
Re: Email Archive Search (Archive Manager)
Very interesting, considering that the code is written to specifically NOT archive any password-reset or cc-middle-digit emails, for security reasons.
-
Re: Email Archive Search (Archive Manager)
That's all i ever use it for.:blink:
-
1 Attachment(s)
Re: Email Archive Search (Archive Manager)
here's a screen shot of an email, resetting my password..they very clearly show up in the email archive.
-
Re: Email Archive Search (Archive Manager)
Will have to make sure that's fixed in the next release :)
-
Re: Email Archive Search (Archive Manager)
Hi folks i have just installed this great MOD, everything looks fine until i click on the Preview HTML button. It tells me "HTML disabled in admin"
In Admin > Configuration > Emails i have the following set
Use MIME HTML When Sending Emails true
Email Admin Format? HTML
Can anyone tell me what I have to do to email the html preview of the messages, the text version works fine.
-
Help! Cannot install! Email Archive Search
Hi all.. having serious problems installing this mod!!!
I've uploaded the files as stated, and when I go to the page.. its completely blank! :blink:
Please help! The only thing I've done which MIGHT conflict with it is changing the name of the admin folder. Other than that, I have NO idea! :frusty:
-
Re: Email Archive Search (Archive Manager)
-
Re: Email Archive Search (Archive Manager)
If you have trouble installing a mod you should place an ad in the Commercial Help Wanted section asking someone for a quote to install it. I can't debug your installation on the forum.
-
Re: Email Archive Search (Archive Manager)
Ok, fair enough. I was just wondering if it was a common problem, or if anyone else had experienced it and knew what to do.
-
Re: Help! Cannot install! Email Archive Search
-
Re: Email Archive Search (Archive Manager)
Quote:
Originally Posted by
mikebackhouse
Ok, fair enough. I was just wondering if it was a common problem, or if anyone else had experienced it and knew what to do.
Quote:
Originally Posted by
DrByte
I am having exactly the same issue with ZC 1.3.8 after installing the Archive Manager exactly as per the readme.txt file. I also tried all the debug options presented by DrByte, but no errors are being reported in either methods suggested by https://www.zen-cart.com/tutorials/index.php?article=82. Did you ever solve your issue mikebackhouse?
I get the standard admin zen header and footer, but nothing in between. Could this have something to do with the fact that I have changed the date format in my cart from mm/dd/yyyy to dd/mm/yyyy?
-
Re: Email Archive Search (Archive Manager)
Hi all, just installed this mod as per instructions in readme file,
when I go to tools> in admin, the mod doesn't appear, anyone else had this problem?
Turned archiving on in email settings, tried sending test emails, still nothing?
ANy tips?
cheers.
-
Re: Email Archive Search (Archive Manager)
If it's not showing in the menu, then you didn't put the proper file into the /admin/includes/boxes/extra_boxes/ folder.
When you unzip a zip file, make sure you have your unzip program set to expand the folders embedded in the zip so that you can tell where things belong.
-
Re: Email Archive Search (Archive Manager)
Hi, thanks for the reply, it seems to have unzipped correctly,
includes/boxes/extra_boxes contains the file "email_history_tools_dhtml.php"
Is this wrong?
Thanks again
-
Re: Email Archive Search (Archive Manager)
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
-
Re: Email Archive Search (Archive Manager)
Thank you, your suggestions helped and I got it working.
Muchos Thankos.
-
Re: Email Archive Search (Archive Manager)
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
-
Re: Email Archive Search (Archive Manager)
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
-
Re: Email Archive Search (Archive Manager)
Quote:
Originally Posted by
dw08gm
...which is not much help when an external email is received ...
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.
-
Re: Email Archive Search (Archive Manager)
Quote:
Originally Posted by
DrByte
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.
-
Re: Email Archive Search (Archive Manager)
BUMP - I'm having this problem as well, any help would be apriciated.
Quote:
Originally Posted by
lextechs
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
-
Re: Email Archive Search (Archive Manager)
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
PHP Code:
$html_content = str_replace(array('<body>','</body>'),'',$html_content);
add the lines:
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);
That clears up most of the mess.
-
Re: Email Archive Search (Archive Manager)
Quote:
Originally Posted by
gothstone
PHP Code:
$html_content = str_replace(array('body {'),'<body {',$html_content);
I recommend you DO NOT use that line, since it completely changes the intent behind the markup code.
Doing what you suggest turns CSS into HTML, which is a bad idea.
-
Re: Email Archive Search (Archive Manager)
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?
-
Re: Email Archive Search (Archive Manager)
Now I get it. The goal is to break html that can't be used inside another page, but fix the rest. I think I have it now, all my tables are corrected, and I don't see any code anymore. Here is my rewriten section:
PHP Code:
if ($action=='prev_html') {
$html_content = $this_email->fields['email_html'];
$html_content = str_replace('__','><',$html_content);
$html_content = str_replace('_html','<html',$html_content);
$html_content = str_replace('_base','<base',$html_content);
$html_content = str_replace('_table_','<table>',$html_content);
$html_content = str_replace('_table ','<table ',$html_content);
$html_content = str_replace('_/table','</table',$html_content);
$html_content = str_replace('</table_','</table>',$html_content);
$html_content = str_replace(array('_tr_','_tr>'),'<tr>',$html_content);
$html_content = str_replace(array('_/tr_','_/tr>'),'</tr>',$html_content);
$html_content = str_replace(array('_td_','<td_'),'<td>',$html_content);
$html_content = str_replace('_td ','<td ',$html_content);
$html_content = str_replace(array('_/td_','_/td>','</td_'),'</td>',$html_content);
$html_content = str_replace('"_','">',$html_content);
$html_content = str_replace('_ ','> ',$html_content);
$html_content = str_replace('_li>','<li>',$html_content);
$html_content = str_replace('_div ','<div ',$html_content);
$html_content = str_replace('_/div_','</div>',$html_content);
$html_content = str_replace('_/div','</div',$html_content);
$html_content = str_replace('</div_','</div>',$html_content);
$html_content = str_replace('_strong_','<strong>',$html_content);
$html_content = str_replace('_/strong_','</strong>',$html_content);
$html_content = str_replace('strong_','strong>',$html_content);
$html_content = str_replace('_/strong','</strong',$html_content);
$html_content = str_replace('_!','<!',$html_content);
$html_content = str_replace(array('_br_','_br /_','_br />','_br /','<br /_'),'<br />',$html_content);
$html_content = str_replace('_style','<!-- style',$html_content);
$html_content = str_replace('_/style_','</style> -->',$html_content);
$html_content = str_replace('em_','em>',$html_content);
$html_content = str_replace('_/em','</em',$html_content);
$html_content = str_replace('_img ','<img ',$html_content);
$html_content = str_replace('_a href','<a href',$html_content);
$html_content = str_replace('_sup_','<sup>',$html_content);
$html_content = str_replace('_/sup','</sup',$html_content);
$html_content = str_replace(array('_/a_','_/a>'),'</a>',$html_content);
$html_content = str_replace(array('<html>','</html>','</html_','_/html_'),'',$html_content);
$html_content = str_replace(array('<head>','</head>','_/head_'),'',$html_content);
$html_content = str_replace(array('<body>','</body>','_body_','_/body_'),'',$html_content);
$html_content = str_replace('"_','">',$html_content);
$html_content = str_replace('_nobr','<nobr',$html_content);
$html_content = str_replace(';nbsp;',' ',$html_content);
$html_content = str_replace('&','&',$html_content);
$html_content = str_replace('&&','&&',$html_content);
$html_content = str_replace('& ',' ',$html_content);
$html_content = str_replace('"','"',$html_content);
}
-
Re: Email Archive Manager
(From a PM)
Quote:
Great Contribution! I'm having trouble using the Email Archive Manager, it does not display any emails. The page isnt broken, just not doing anything.
By default nothing shows up, you have to perform a search in order to get results. Are you able to load the page and perform a search?
-
Re: Email Archive Manager
Thanks for your quick reply!
The page renders fine, doesnt display any errors. However there is no search field. All I get is the normal top of the page and bottom, but no content. I checked to make sure there was emails in the archive and there are. Any ideas what I can do to fix it?
I'm using Zencart 1.3.8a.
Thanks!
Matt
-
Re: Email Archive Manager
Hi
I installed Email Archive manager and when i view emails in HTML this is what i see.......... It seems to be pulling the css in from the email welcome template
http://www.bidgeepumps.com.au/images/MAILBEEZProb.jpg
How do I remove this??
Thanks
-
Re: Email Archive Manager
Quote:
Originally Posted by
mateogp
The page renders fine, doesnt display any errors. However there is no search field. All I get is the normal top of the page and bottom, but no content. I checked to make sure there was emails in the archive and there are. Any ideas what I can do to fix it?
Re-upload the files. It sounds like either they got corrupted during transfer, or you put them in the wrong place.
Quote:
Originally Posted by
Bidgee182
Have you made any customizations to your email templates?
-
Re: Email Archive Manager
Hiya Frank,
Just wondering if you can help me.
I am using your Email Archive Manager which is Great :) in my Zen-cart 1.3.9 and it seems to be working fine, guess it doesn't need to be updated to the latest 1.3.9 version :)
The only problem I am getting is when I click on (Trim Email Archive), it's deleting all the emails, even ones that are new and only a few days old!
I have changed the dates on my website to suit the d/m/y. Would that be the problem? if so what do you think is the fix?
Hope you can help.
Best Regards,
-
Re: Email Archive Manager
Glad you like it, rlexyd. :bigups:
The Trim functionality doesn't even look at your date formats. Since the date selections are preset radio buttons (1, 6, or 12 months), there's no date to enter, so the code just automatically puts the date in MySQL format. If you didn't touch the code in the addon you should be fine.
Assuming you didn't touch the code, let's do a test. Make sure you've installed the latest version of Email Archive Manager from the addon section. Then open email_history.php, and find this code at line 60:
Code:
$db->Execute("delete from " . TABLE_EMAIL_ARCHIVE . " where date_sent <= '" . zen_date_raw($cutoff_date) . "'");
Just above that line, enter the following code:
Code:
$sql = "delete from " . TABLE_EMAIL_ARCHIVE . " where date_sent <= '" . zen_date_raw($cutoff_date) . "'";
die($sql);
Save and upload the file to your /admin directory.
Now perform a trim, any date range. When you do, the page will come back blank with just the SQL query listed at the top. Copy and paste that query into a response post on this thread.
When you're done, go back into email_history.php and undo the changes described above. You can simply comment out the new lines and uncomment the original.
-
Re: Email Archive Manager
Hello Frank,
Thank you for your reply.
I did as you asked, here is the query:
delete from zen_email_archive where date_sent <= '20101307'
Just wondering, shouldn't the date have shown up as 20100713?
Hope you can solve this.
Best Regards,
-
Re: Email Archive Manager
-
Re: Email Archive Manager
Sorry, went underground dealing with some non-Zen Cart stuff.
You're right, that date isn't correct. I'll look into this further.
-
Re: Email Archive Manager
I'm sure you are busy and I appreciate ur help :)
Cheers,
-
Re: Email Archive Manager
rlexyd, how exactly did you go about changing the date format?
Did you follow the instructions in this FAQ article?
Did you make any date-related edits to email_history.php?
-
Re: Email Archive Manager
Hiya Frank,
Yes, I followed the instructions from that link to change the dates.
Also, after the Trim email archive was Not working, I did attempt to alter the dates from the email_history.php and it didn't make a difference, so I just replaced it back with the original file!
You can check an image snapshot of what happens when I go to trim email archive, emails are only a week old and it still deleted them all.
(http://a.imageshack.us/img26/6650/eamerror.jpg)
Hope you can help figure out what's causing this and how to fix it :)
Best Regards,
-
Re: Email Archive Manager
From your screen shot it looks like everything worked as expected. You had several emails all within a few days of each other, you chose to delete them, and they were gone. Is there something there that I'm missing? You'd need one or more emails older than a month to see any issues with the delete process.
An updated version has been posted on the add ons page. It includes the code changes I recommended to you in packaged form. In addition to a larger test set, you may want to give that package a try.
http://www.zen-cart.com/index.php?ma...roducts_id=198
-
Re: Email Archive Manager
Hi Frank,
Thanks for your response.
I am not sure how you missed what I meant?
Your Mod's Trim feature is suppose to DELETE specific emails which have been received for a certain time period, the 1st option being (Delete e-mail older than... 1 month)!!
When I click on the (Delete e-mail) button, it Deletes ALL the e-mails, Even E-mails which were only Received a couple of days ago!!
Hope you get what I mean now?
Best Regards,
-
Re: Email Archive Manager
D'oh, total brain fart on my part. You're right, I'll take another look.
-
Re: Email Archive Manager
Okay, better idea. I'm going to circumvent Zen Cart's date conversion code entirely and let MySQL do the math. That way it doesn't matter what date format you use.
Look for a new v1.6 later this evening.
-
Re: Email Archive Manager
This is what customer got when I click resend msg:
$EMAIL_SUBJECT
$EMAIL_MESSAGE_HTML
$EMAIL_FOOTER_COPYRIGHT
$EMAIL_DISCLAIMER
$EMAIL_SPAM_DISCLAIMER
$EXTRA_INFO
text preview works fine. html preview doesn't. it looks like:
body {background-color:#ffffff; color:#000000; font-family:Verdana, Arial, Helvetica, sans-serif; text-align:center;} a:link {color:#0066cc;} a:hover {background-color:#eeeecc; color:#0066cc;} a:visited {color:#0066cc;} .holder {background-color:#f9f9f9; border:1px solid #9a9a9a; font-size:9px; text-align:left; width:550px;} .header {font-size:10px; padding:0px; width:550px;} .content {font-size:10px; padding:5px; width:550px;} .footer {border-top:1px solid #9a9a9a; font-size:9px; text-align:center; width:550px;} .extra-info {background-color:#cccc99; border:1px dashed #9a9a9a; font-size:10px; margin-top:10px; padding:5px; width:550px;} .content-line {padding:5px; font-size:10px;} .content-line-title {font-weight:bold; font-size:11px; padding-top:3px;} .order-detail-area {background-color:#CCCC99; border:1px #9a9a9a; width:542px; padding:2px; font-size:10px; } .product-details {font-size:10px;} .product-details-num {font-size:10px; font-weight:bold;} .order-totals-text {font-size:10px; font-weight:bold;} .order-totals-num {font-size:10px; } .comments {background-color:#FF6699; border:1px #9a9a9a; width:542px; padding:2px; font-size:10px; } .address-block {background-color:#E4E8F3; border:1px solid #9a9a9a; margin-top:3px;} .address {font-size:10px;} .payment-detail, .payment-footer {font-size:10px;} .extra-info {background-color:#cccc99; border:1px solid #9a9a9a; font-size:10px; margin-top:10px; padding:5px; width:550px;} .extra-info-bold {font-weight:bold;} .disclaimer {background-color:#f9f9f9; border:1px solid #cccccc; font-size:10px; margin-top:10px; padding:5px; width:550px;} .disclaimer1 {color:#666666; padding:5px;} .disclaimer1 a:link {color:#666666;} .disclaimer1 a:visited {color:#666666;} .disclaimer2 {color:#666666; padding:5px;} .copyright {border-bottom:0px solid #9a9a9a; padding:5px;} .order-licences-area{background-color:#DDDDAA; border:2px #9a9a9a; width:542px; padding:2px; font-size:10px; } .licences_code{font-weight: bold; font-size: 12px; font-family: monospace;}
My zencart 1.36, email archive latest
What should I do?
-
Re: Email Archive Manager
Any time I hit the search button it takes me to the log in screen. I did a fresh install of zen cart, installed this mod and I get the same error. Any solutions?
-
Re: Email Archive Manager
I'm a newbie and I feel like an idiot because I have installed Email Archive Manager 4 times and it still does not appear in the tools menu. I do have Email Archiving active and I have sent numerous emails. Still nothing. I recently upgraded to 1.39h and am using the old Sophie Blue template.
I thought I felt confident I put all the files in their proper places. Any ideas?