Jump to content
thirty bees forum

dynambee

Trusted Members
  • Posts

    821
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by dynambee

  1. @alwayspaws said in How to get copy sent to me of all customer order-related emails?: @dynambee I will try your solutions very soon. Thank you for them. From a merchant’s viewpoint, I wish that it was easier to do this and possibly keep it from being overwritten in the future. If you do the override it should be easy to make sure it doesn't get overwritten, or just keep a copy of the override file to put back after an update. Easier than having to edit files, too.
  2. You're welcome to believe whatever you want about sanctions but there is no way to avoid that the next step after failed sanctions is usually going to war. I've seen enough war, thanks.
  3. Of course Swift Mailer supports those features. That isn't the problem here. The problem being discussed here was finding a way to have 30bz tell Swift Mailer to send those BCC messages. (Or alternatively to edit Swift Mailer itself to have it auto-send those BCC messages.) I have figured out and shared two different ways to make those BCC happen, one by editing the Mail.php file and one with a Mail.php override.
  4. @daokakao said in Transformer & Panda ST-Themes ThemeForest account on Envato has been Suspended :(: @marci123 Now all this restrictions move to complete stupidities: soon someone will decide to prohibit to breath the same air with ppl from the prohibited countries, or something else in that manner. Sanctions are put in place to put economic pressure on countries that are not cooperating with the international community. When it gets to the stage of implementing sanctions it means all other forms of diplomacy have failed. If the sanctions also fail (and they will fail if not enforced) then the next step is often going to war. I'd sooner avoid more wars, and I suspect most people feel the same.
  5. @boyd, interesting. @Traumflug asked if you could share some of the passwords you used as that may help for debugging purposes. Also, was this a fresh 30bz install or was it a migration from PS? If a migration, from which version of PS?
  6. @daokakao said in How to get copy sent to me of all customer order-related emails?: Taking in account all said above, it seems like an attempt to re-invent the bicycle: https://github.com/PHPMailer/PHPMailer Why not to include this module in the TB? 30bz includes Swift Mailer. I don't see any advantage to changing from Swift Mailer to PHPMailer, at least not for the issue currently at hand.
  7. @boyd said in 500 Server Error when trying to creat new customer account: I’m not sure what to do to try and fix this. Does anyone have any ideas? Thanks At the top it says a 60 character password was used but the limit is 50 characters. It's definitely a bug that 30bz didn't handle the extra length gracefully but you should be able to create the account with a password that is 50 characters or less until the bug is fixed.
  8. Such shaping is going to be difficult with the nearly endless number of unicode characters. Japanese alone has 7 or 8 different dash type characters, and that's not including the funky ones that are dash-like but not actually dashes. I expect other complex languages will have similar numbers to deal with. There are also 9 or 10 different possible bracket styles in Japanese. Crazy, yes. It's probably best to give people a list of valid characters they can use and then either refuse to accept input with invalid characters (like now) or brute-force strip invalid characters with Regex.
  9. @traumflug said in How to get copy sent to me of all customer order-related emails?: Looking at this discussion I think there is an actual demand, so I opened an enhancement issue for this, mentioning @dynambee's (partial) solution: https://github.com/thirtybees/thirtybees/issues/397 I think it's a useful way to keep tabs on the emails being sent by the site and to make sure the emails are properly formatted and contain the expected information. It would be easy to upgrade or change something and not realize the emails were going out borked for quite some time. The people running the store don't usually see those messages. To keep things simple and avoid the potential for BCCs being sent to a wildly incorrect address perhaps if the "BCC option" is turned on then BCC messages should be sent to the $from address?
  10. @yaniv14 said in How to get copy sent to me of all customer order-related emails?: I guess it will be better to override the Send function in Mail.php to add a static bcc address. Never tested it but I think it should work, just create an override to the entire function and set a default bcc instead of null. You can probably just call the parent function and modify the bcc, but I rather check it before posting here. I still have a lot to learn about how PS/30bz overrides work and I didn't properly understand your message the first time I read it. I do now though, and I think your idea is correct. With this in mind I have created a simple override that I have tested and it is working. If anyone else would like to do the same thing, here is the override PHP code and how to use it: Code: <?php class Mail extends MailCore { public static function Send($id_lang, $template, $subject, $template_vars, $to, $to_name = null, $from = null, $from_name = null, $file_attachment = null, $mode_smtp = null, $template_path = _PS_MAIL_DIR_, $die = false, $id_shop = null, $bcc = null, $reply_to = null) { $bcc = '[email protected]'; return parent::Send($id_lang, $template, $subject, $template_vars, $to, $to_name, $from, $from_name, $file_attachment, $mode_smtp, $template_path, $die, $id_shop, $bcc, $reply_to); } } ?> Change the email address to be where you want the BCC mails to be sent. Double check it! That address will be receiving a lot of messages so make sure you get it right. Once you have the BCC address correctly set, save the file to the /override/classes directory with the filename Mail.php. After saving the file visit the /cache directory and delete the file class_index.php. This file must be deleted so 30bz will recognize the override. If you change the override or remove it then this the class_index.php must be deleted each time. 30bz will rebuild it automatically. Now do something that would generate an email (anything except the "test message" should work) and you should receive a BCC of that email at the address you have specified. Edit: Spelling & grammar.
  11. Apparently some countries "recommend" this practice and some companies say they keep anonymous user statistics in their privacy policies. Or so Google seems to say.
  12. @mdekker said in Cart Rules (Vouchers) Issues: Do you mean bulk discount? This feature is already supported but you will have to provide specific prices for products on the product page in your admin panel. I mean discounts and surcharges based on the total value of the cart, in my case before shipping or tax are added. Such a system could be used to add a handling charge for very low value purchases. For example for a cart value of less than $10 a small handling charge could be added. For higher cart values a discount could be automatically given. For example if the cart value exceeds $1000 then a $50 discount, that type of thing. If both a minimum and a maximum value could be set then discounts for different ranges of cart totals would be possible. $500 to $999.99 = $20 off. $1000+ = $50 off, etc. Just adding the option of a maximum value to the Cart Rules would make it much, much more flexible.
  13. For now I think I have found a solution to force BCC for messages sent from 30bz. In the end I modified the Mail.php file and added the BCC address at line #247: 234 if (isset($bcc) && is_array($bcc)) { 235 foreach ($bcc as $addr) { 236 $addr = trim($addr); 237 if (!Validate::isEmail($addr)) { 238 Tools::dieOrLog(Tools::displayError('Error: invalid e-mail address'), $die); 239 240 return false; 241 } 242 $message->addBcc($addr); 243 } 244 } elseif (isset($bcc)) { 245 $message->addBcc($bcc); 246 } 247 $message->addBcc('[email protected]'); I had hoped to make the change within swiftmailer but for now this should work fine. As always, it's far from ideal to modify core files and future upgrades will no doubt overwrite Mail.php and require me to add that single line of code again. @mdekker, pretty low priority I suppose but maybe at some point the option to send a BCC could be added. Even better would be IMAP for outbound emails but that seems like it would be a lot more work than just a BCC option.
  14. Gmail's SMTP server behaves in different ways to postfix. I do not wish to rely in Google's mail services any longer, both for the problems of spam as well as for various other reasons. As such your suggestions about using Google are of no help whatsoever and are not relevant to this thread.
  15. @daokakao said in How to get copy sent to me of all customer order-related emails?: senderbccmaps = type:table and recipientbccmaps = type:table ? Won’t that be enough? All of our outbound emails (automated, from the website, and human sent) go from [email protected]. This way customers can reply to any message and reach a real person. The only messages that need to be BCC'd are the ones that come from the website as they are the only ones that we don't get a copy of in our sent items folders.
  16. @daokakao said in How to get copy sent to me of all customer order-related emails?: @dynambee If you use the postfix, you already have all needed for bcc'ing any mail and you don't need any extra efforts with php, IMHO :) And thi is one of standard features in postfix Yes, of course postfix supports BCC. What I need is a way for 30bz to tell postfix to send a BCC, and the BCC address will depend on the store that is sending the email.
  17. @daokakao said in How to get copy sent to me of all customer order-related emails?: When you starting real business (eg trading) you'll need a messaging infrastructure. Anyway you'll register a domain, so why not to optimize your business, reducing costs related to mailserver maintenance? I think, google would do much better my mail management than me. Google charges $5 per month per email address. If we moved all our domains over to Google Apps for Business we would have to pay something around $300 per month just for email. We could reduce that cost by using domain aliases but that creates problems for outbound mail. If you have only one domain and only a few email accounts (or if you have a huge budget) then Google or a similar email service can be a low-cost option. There are drawbacks however and that includes the outbound mail spam issue. Also it would do much better spam filetring (this is reply for @dynambee 's mension of spam problem) The problem isn't incoming spam, the problem is outgoing messages to customers being tagged as spam. This is a really big issue and is one that has become an increasing problem with messages we send from Google's outbound servers. This affects everyone on Google's severs, not only us. Just click the email icon on th very top of TB's admin, and select the link "show all messages" That is not IMAP. I need a copy of the messages in an email client. I do not wish to visit a whole bunch of different store domains and click through the admin panel to see what messages may or may not be there. They need to be in a mail client with a combined inbox so everything is easy to see and reply to from one place.
  18. @mdekker said in How to get copy sent to me of all customer order-related emails?: Doesn't your outbound mail get collected by your provider? If using IMAP (which we do now for all our automated emails) then yes, any mail we send is saved in our sent items folder. This is not something that SMTP does, at least not as a standard feature in postfix.
  19. @mdekker said in How to get copy sent to me of all customer order-related emails?: That is what I always recommend, too. The sent folder will show us all the mails that have been sent to customers. But it is not an option for everyone, hence the option to duplicate/BCC the mails. When entering the outbound email settings on 30bz I see only an option to configure outbound SMTP. Is there an option for IMAP that I am missing?
  20. @daokakao said in How to get copy sent to me of all customer order-related emails?: Come on ,folks! The task is trivial. There is no need to be rude. TB has the options for SMTP and IMAP servers. Where does 30bz have an option for IMAP? I see only SMTP for outbound mails. IMAP would certainly solve this problem perfectly and that is how I send all our automated mails now. As i told above - why not to bind your MX record to google or some other third party mail provider? You definitely will have access to all needed mail There are many reasons to run your own SMTP server. One big reason is spam. When sharing an outbound SMTP IP with millions of other users (such as when using Google) your messages are more likely to be tagged as spam. I have been using Google Apps for many years -- we have dozens of domains with the no-longer-available free of charge "standard edition" as well as a number of domains with the pay-per-account "business edition" -- and higher numbers of our messages being tagged as spam is a real problem. With this in mind we have joined the increasing number of people who are moving away from shared mail hosting.
  21. @daokakao said in How to get copy sent to me of all customer order-related emails?: In TB's email setting there's a switch called "Log emails". Is it not enough for that purpose? "Log emails" does not show the email itself and the log entry also doesn't mean that the email was actually sent, only that 30bz thinks it was sent. Customers also have a habit of replying to emails and it can be very useful to have an actual copy of the email the customer received so that when they reply with questions the message (and whatever might have been wrong with the message) is clear.
  22. I think you may have misunderstood the issue at hand, @DaoKakao. 30bz sends out lots of emails to customers. Order confirmations, shipping confirmations, welcome emails, etc etc. What @alwayspaws would like (and me too) is to receive a BCC of all of those outbound mails. One message might go to [email protected] while the next message could be to [email protected]. No matter who the message is actually being sent to a BCC needs to be added to the message to send a copy to [email protected].
  23. After much mucking about: Adding that line to the RedirectingPlugin.php file seems to have no effect. If anyone else has an idea I'm certainly up for testing it. We would also like to get BCC of all outbound mails. If you are going to use your own SMTP server then be sure to enter the correct email address in the 30bz /Preferences/Store Contacts settings area. The email address you enter in the Store Contacts area is the email address all emails seem to be sent from. If this email does not match at least the domain of the SMTP account you are using then your connection will probably be refused by your SMTP server. Not only refused but with no information given as to why the connection was refused. Took me a while to figure out WTF was going wrong... :(
  24. I'd sooner send all mail through my own SMTP server so I don't have to configure DKIM (etc etc) for multiple IP addresses. Especially having multiple store domains it is much easier to use a single outbound mail server.
  25. Unless the phone number field is to be used for auto-sending SMS or something like that then is validation really needed at all? Removing validation would allow customers to include extension numbers (common for offices) or other bits of info that might occur in some phone numbers.
×
×
  • Create New...