i have an email script...it only sends to the To: not to the added headers -- explanation of script::

i sort the addresses into two lists, emails are built based on whether or not the users have performed some action. i build a comma delimited string of email addresses that are inserted into $header which is the headers argument of my mail() the To: is the sites' email address --and for a test i have a hotmail acct that i have acting in the place of a bcc address --i checked the contents of the bcc var with an echo and the address appears just so but when i check the mail it is not there...also i send a cc to the same address as the To: and it never arrives either although the mail has the cc listed in the header of the mail

what is up .....πŸ˜•
-- i can post a snippet to see if anyone needs it

    Please post a snippet, your problem hard to understand without it...

      how can remotely executed code sending email from a linux box or whatever can be impacted by your local browser?

      πŸ˜•

      If it doesn't work using IE6 it prolly won't with mozilla, opera or any other...

        I have had some issues recently with ie6 that involve sessions some users using ie6 are able to login but the $_SESSION('var') is not going with them to the next page after the first....only some of the IE6 users have this problem --i use ie6 and have no problems i have investigated cookie settings and such but nothing has come up that would bar them from proceeding ....but i digress ---i have another post somewheres aroundabout about it.
        see the next post for code snip ....

          ...starts with call for data then chuck dat thru a while loop to separate the users into two categories--and adding the email address to string variable used to fill the bcc header...

          while($collid=mysql_fetch_row($result2))
          {if ($collid[1] != 'none@yet.com'){
          if ($collid[2]= 2)
          {
          if ($thanks_addies="start")
          {$thanks_addies =$collid[1];}
          else
          {$thanks_addies .=",".$collid[1];}
          }
          else
          {
          if($remind_addies="start")
          {$remind_addies =$collid[1];}
          else
          {$remind_addies .=",".$collid[1];}
          }}}
          //create headers for both mails
          $header = "From: support@the.com\r\n";
          $header .= "Reply-To: support@the.com\r\n";
          $header .= "X-Sender: support@the.com\r\n";
          $header .= "MIME-Version: 1.0\r\n";
          $header .= "Content-Type: text/plain; charset=iso-8859-1\r\n";
          $header .= "X-Priority: 3\r\n";
          $header .= "X-Mailer: PHP / ".phpversion()."\r\n";
          $header .= "cc: support@the.com\r\n";

          //create each message with the appropriate data

          // --msg is for the thankyou....
          $msg:

          // --msg2 is for the reminder.....
          $msg2;

          $email="support@the.com";

          $header1 =$header;
          if ($thanks_addies != "start")
          {$header1.= "bcc: ".$thanks_addies." \r\n";
          $subject="Thank you for your report";
          echo $header1."\t";
          mail($email, $subject, $msg, $header1);
          }

          $header2 =$header;
          if ($remind_addies != "start")
          {$header2.= "bcc: ".$remind_addies." \r\n";
          $subject="Reminder to report";

          mail($email, $subject, $msg2, $header2);}
          echo $header2."\t";

          ...there ya have it if it will help...
          i have read that in win-php4.2.3 mail() does not support the cc or bcc headers ...so far i agree but why is there no statement in the manual to this effect.πŸ˜•

            Originally posted by melchior23
            i have read that in win-php4.2.3 mail() does not support the cc or bcc headers ...so far i agree but why is there no statement in the manual to this effect.

            The manual
            Warning
            The Windows implementation of mail() differs in many ways from the Unix implementation. First, it doesn't use a local binary for composing messages but only operates on direct sockets which means a MTA is needed listening on a network socket (which can either on the localhost or a remote machine). Second, the custom headers like From:, Cc:, Bcc: and Date: are not interpreted by the MTA in the first place, but are parsed by PHP. PHP < 4.3 only supported the Cc: header element (and was case-sensitive). PHP >= 4.3 supports all the mentioned header elements and is no longer case-sensitive.

              thanks weedpacket ...

              oops i guess i missed that bit ...sucks tho

              by the by u look so familiar.... ever hang by the Rumsford Bypass ... maybe have a laugh ... or maybe have you ever been to the Greek island of Demestos...hey wait a minute ...

              DIDN'T YOU KILL MY BROTHER !?!?

              πŸ˜‰

              later... oh yeah hows bout anybody suggestin a way for me to send a bcc with 4.2.3 ---that's what the host is runnin' ...actually had them upgrade from 4.1.2 couple o weeks ago not sure they'd like anymore suggestions from me ....πŸ˜ƒ --might hvae ta give it a go tho who knows

                each email could have up to 2000 recipients... a little more than two emails πŸ™ tis ok i will just send one to each recipient directly--i guess this can allow for some personalization that will make the users feel "special" about not reportingπŸ˜‰

                how does one directly send to smtp i have heard of this option but not sure how it is done a brief code example or direction to an example should be most appreciated---

                would sending to smtp allow for the the bcc header --- just dont want to eat up my bandwidth sending thousands of mails not that this would be an issue yet.

                  why not get a free linux based host and POST some info to it from your windows host?

                  Would take the load off πŸ˜‰

                    Write a Reply...