Announcement

Collapse
No announcement yet.

Send "Bcc" copies with emails?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Send "Bcc" copies with emails?

    Hi folks --

    Can a Merchant module send emails with "Bcc" copies? I tried to set up a header for the SendEmail() utility function, but that didn't work. I don't mind writing an MvSMTP tag if that will do the trick. Anyone know how to do it?

    Thanks --
    Kent Multer
    Magic Metal Productions
    http://TheMagicM.com
    * Web developer/designer
    * E-commerce and Miva
    * Author, The Official Miva Web Scripting Book -- available on-line:
    http://www.amazon.com/exec/obidos/IS...icmetalproducA

    #2
    Re: Send "Bcc" copies with emails?

    hey kent...Ivo had a "hack" for this...check his site (www.truxoff.com) if its still up...if you can't find it i can dig around...I know i use it for dev stuff all the time but iz swamped at the moment.
    Bruce Golub
    Phosphor Media - "Your Success is our Business"

    Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
    phosphormedia.com

    Comment


      #3
      Re: Send "Bcc" copies with emails?

      Found it, thanks. www.truxoft.com and click "Resources." Ivo has a bunch of other great tips there.
      Kent Multer
      Magic Metal Productions
      http://TheMagicM.com
      * Web developer/designer
      * E-commerce and Miva
      * Author, The Official Miva Web Scripting Book -- available on-line:
      http://www.amazon.com/exec/obidos/IS...icmetalproducA

      Comment


        #4
        Re: Send "Bcc" copies with emails?

        Whoa, hold on a sec. I just read the text of that article. The recommended technique is to make a hex edit to the Empresa binary, and change the "Cc" header to "Bcc." I don't think I like that. It means that every other Cc email generated by the store will also become a Bcc. Also, I wonder how the PCI auditors would feel about that sort of thing.

        Ivo's article says that the cause of this problem is "a buggy SMTP header sent by Miva's MvSMTP command." MMCorp guys, are you following this thread? Any chance we can get a fix for this in the near future? It's not urgent; I think my client can live with Cc's for now.

        Thanks --
        Kent Multer
        Magic Metal Productions
        http://TheMagicM.com
        * Web developer/designer
        * E-commerce and Miva
        * Author, The Official Miva Web Scripting Book -- available on-line:
        http://www.amazon.com/exec/obidos/IS...icmetalproducA

        Comment


          #5
          Re: Send "Bcc" copies with emails?

          Unless MvSMTP has changed in version 5.x you can add additional headers thus:

          Code:
          <MIVA STANDARDOUTPUTLEVEL="text">
          <MvSMTP 
          TO="to_address1,to_address2,..." 
          SUBJECT="expression" 
          CC="cc_address1,cc_address2,..." 
          MAILHOST="mailhost" 
          FROM="from_address"> 
          <MvEVAL EXPR="{'Bcc: ' $ g.bcc_address}">
          [optional headers] 
          [blank line] 
          ... message body (text/tags)... 
          </MvSMTP>
          Richard Grevers
          Dramatic Design
          New Plymouth, New Zealand

          Comment


            #6
            Re: Send &quot;Bcc&quot; copies with emails?

            Thanks, Richard; but have you actually tried that? Ivo's article specifically states that there is a bug in MvSMTP; and I think he must have tried the technique you suggested. (In case you're new to this community, I should mention that Ivo Truxa is the "guru." I don't think there's anyone around here with more expertise then him, not only on Miva, but also on related issues like HTTP headers. But he hasn't participated in the forums much in the last year or two.)
            Last edited by Kent Multer; 08-11-10, 07:28 AM.
            Kent Multer
            Magic Metal Productions
            http://TheMagicM.com
            * Web developer/designer
            * E-commerce and Miva
            * Author, The Official Miva Web Scripting Book -- available on-line:
            http://www.amazon.com/exec/obidos/IS...icmetalproducA

            Comment


              #7
              Re: Send &quot;Bcc&quot; copies with emails?

              That article was written in early 2000. In his example he's tried up until version 3.64. It's very possible that it's been fixed by now. I would try the code above and see what happens.

              Comment


                #8
                Re: Send &quot;Bcc&quot; copies with emails?

                Actually, I kinda did already. If you look at the source code for the SendEmail utility function, it does what your snippet does.
                Kent Multer
                Magic Metal Productions
                http://TheMagicM.com
                * Web developer/designer
                * E-commerce and Miva
                * Author, The Official Miva Web Scripting Book -- available on-line:
                http://www.amazon.com/exec/obidos/IS...icmetalproducA

                Comment


                  #9
                  Re: Send &quot;Bcc&quot; copies with emails?

                  I've successfully inserted reply-to: headers that way - haven't tried bcc.
                  Richard Grevers
                  Dramatic Design
                  New Plymouth, New Zealand

                  Comment


                    #10
                    Re: Send &quot;Bcc&quot; copies with emails?

                    It does seem odd that Bcc doesn't work when other types of headers do. But Ivo and I have both reached the same conclusion about this. His article doesn't go into detail about the bug. But I bet, if someone from MMCorp were to reach out to him, he'd provide the specifics, and probably the solution as well.
                    Kent Multer
                    Magic Metal Productions
                    http://TheMagicM.com
                    * Web developer/designer
                    * E-commerce and Miva
                    * Author, The Official Miva Web Scripting Book -- available on-line:
                    http://www.amazon.com/exec/obidos/IS...icmetalproducA

                    Comment


                      #11
                      Re: Send &quot;Bcc&quot; copies with emails?

                      if someone from MMCorp were to reach out to him, he'd provide the specifics, and probably the solution as well.
                      LOL, I've reached out to him many times about many things in the last few years, 99% of the time I get ZERO reply.

                      I'm sure we can track this down and see what's going on.
                      Thanks,

                      Rick Wilson
                      CEO
                      Miva, Inc.
                      [email protected]
                      https://www.miva.com

                      Comment


                        #12
                        Re: Send &quot;Bcc&quot; copies with emails?

                        Thanks, Rick; I know you guys have plenty of other things on your to-do list.
                        Kent Multer
                        Magic Metal Productions
                        http://TheMagicM.com
                        * Web developer/designer
                        * E-commerce and Miva
                        * Author, The Official Miva Web Scripting Book -- available on-line:
                        http://www.amazon.com/exec/obidos/IS...icmetalproducA

                        Comment


                          #13
                          Re: Send &quot;Bcc&quot; copies with emails?

                          Is there currently any way to add a BCC to the shipping notification emails?
                          Highly caffeinated
                          http://www.coffeehouseexpress.com

                          Comment


                            #14
                            Re: Send &quot;Bcc&quot; copies with emails?

                            It's on our list for V9, but it's not currently possible with the built in modules.
                            Thanks,

                            Rick Wilson
                            CEO
                            Miva, Inc.
                            [email protected]
                            https://www.miva.com

                            Comment


                              #15
                              Re: Send &quot;Bcc&quot; copies with emails?

                              Jim,

                              With the current release of Merchant, there is a workaround. Just create a second Shipping confirmation email template to send to the address that you'd normally BCC. Not great, but you can do it now.:)
                              Bruce Golub
                              Phosphor Media - "Your Success is our Business"

                              Improve Your Customer Service | Get MORE Customers | Edit CSS/Javascript/HTML Easily | Make Your Site Faster | Get Indexed by Google | Free Modules | Follow Us on Facebook
                              phosphormedia.com

                              Comment

                              Working...
                              X