belligerent?  Moi?  Smart-ass yes, pointed yes.  belligerent? No.  But I don't 
take kind to pointed attacks at people who help many others and have tried 
repeatedly to help you without just changing the coding to work for you.  Why?  
Because they and I have helped and been helped by people on here and attacking 
them does not help anyone.  But the sarcasm will get people laughing.  And 
humor/laughter is the best medicine.

You combine the from along with the BCC because they are all part of the 
headers.  What you were doing instead was assigning both to headers as a 
variable.  Which means you no longer had a from.  But if you had concatenated 
them in the first place, that would not have been an issue.  

"" versus '' is syntax, pure and simple.  Some work different ways depending on 
how they are being operated on.  For instance you can do the following:
<?php
$ref = "Some site somewhere";
echo "$ref is where you came from";
// results in Some site somewhere is where you came from
echo '$ref is where you came from';
// results in either $ref is where you came from OR some error possible
echo $ref . ' is where you came from';
// results in Some site somewhere is where you came from
?>

As for understanding "" versus '' ...  Well they both have their uses and you 
will need to see what works best for your current instant issues, and if one of 
them fails, then you will need to massage the code.  Notice that the last 
example I wrote concatenated the variable with the string to give me the proper 
output.

If you play with mail enough, you will find that your stuff will work when 
dumped into $header whereas it will fail when placed into others.  As for WHY 
that is, blame it on smtp.

If your email is going to some but not all, then the some more then likely are 
getting filtered.  Possibly by the sending server, possibly by a middle server 
that the recipients have set up, possibly by a filter on their end.  Email 
either works or does not.  If all of the email addresses are in the same field 
(to, cc, bcc) and some have received and some have not, then the bet is either 
1.  bad addresses, or 2. filtered.  Again, it's not a mail problem attributable 
to PHP but to either the person entering the email addresses, bad information 
or a filter (which could be done multiple ways).

If you had taken the breaths and calmed down when Stut wrote you, Chris would 
not have had to rewrite your own code to show the simple syntax flub that was 
partially causing your issue.

And as for the note about email addresses and URLs, this list IS actively 
parsed for those things, so make sure your mail filters are up to snuff.  And 
advise anyone who's email and/or URL you have sent out to make sure theirs is 
as well.  And as for sending the phpinfo output...  Well I'd just make sure the 
server admins are aware of it and have proper security in place as well.

You will find that those who try to answer you won't just give you a straight 
answer for the most part but will try to guide you to see what you did.  
Especially for something syntax.  We all make a mistake on it once in a while 
(well maybe not Stut and Chris) but even I will get a coworker to read through 
the code.  The important thing is making sure your () and {} are properly done 
and your ; are in the right spot, the rest normally takes some massaging to get 
right for what your needs are.

As for the grammar and security clearance and whatnot....  well let's just say 
that when you took the breath and came back without attacking that it showed 
you thought things through.  

Wolf


---- Brad <[EMAIL PROTECTED]> wrote: 
> Why are you being to belligerent?
> English 101-104 I have aced.
> Top secret security clearance I maintain.
> Concatenate I know well (why would I combine the from, and the bcc?)
> 
> A logical explanation as to the order these guys get plugged into in an
> array and why one requires a "" another a '' and the other a "\r\n" with
> little to no documentation available on google or the text book,
> If this is representation to my ignorance in syntax, then yes, I am guilty!
> 
> I am simply trying to understand......
> 
> 
> 
> -----Original Message-----
> From: Wolf [mailto:[EMAIL PROTECTED] 
> Sent: Monday, November 19, 2007 6:23 PM
> To: Brad
> Cc: php-general@lists.php.net; 'Stut'
> Subject: RE: [PHP] two small issues with php mail
> 
> Why is what?  Sorry, you are going to have to go back and phrase this into a
> complete sentence.
> 
> "it makes no sense" refers to what exactly?
> 
> No, you don't have clearance since you haven't passed syntax 101 along with
> English and Grammar 101.  Once you have completed these courses, the answers
> to your questions should be as obvious as the keyboard in front of you.
> 
> If Stut's answer does not make sense to you, google concatenate in the
> dictionary (dictionay: concatenate), then re-read his answer.
> 
> Your professor MUST have a bottle stored somewhere...
> 
> Wolf
> 
> 
> ---- Brad <[EMAIL PROTECTED]> wrote: 
> > Why is this?
> > 
> > It makes no sense?
> > 
> > Can anyone show me where an "order of operations" for php mail might be
> > hidden?
> > Or is this "top secret" information requiring clearance "which I have"?
> > 
> > ################################################
> > Wrong bit. I also said...
> > 
> >  > // $headers = 'bcc: '[EMAIL PROTECTED]';
> > 
> > This should work. However, because you're assigning this to $headers
> rather
> > than concatenating it you're trampling over the From line above.
> > 
> > BTW, Bcc usually has a capital letter. Probably wouldn't cause any
> problems
> > but has the potential to stop it working.
> > 
> > Fin.
> > 
> > -Stut
> > ###############################################
> > 
> > -----Original Message-----
> > From: Stut [mailto:[EMAIL PROTECTED] 
> > Sent: Monday, November 19, 2007 5:25 PM
> > To: Brad
> > Cc: php-general@lists.php.net
> > Subject: Re: [PHP] two small issues with php mail
> > 
> > Brad wrote:
> > > You say
> > > 
> > >> The use of BCC with the PHP mail function is pretty well-explained on 
> > >> the PHP manual page for said function.
> > > 
> > > I say,
> > > 
> > > No it doesn't, I tried everything on that page and it either parse
> > error'ed
> > > or didn't work.
> > 
> > Wrong bit. I also said...
> > 
> >  > // $headers = 'bcc: '[EMAIL PROTECTED]';
> > 
> > This should work. However, because you're assigning this to $headers 
> > rather than concatenating it you're trampling over the From line above.
> > 
> > BTW, Bcc usually has a capital letter. Probably wouldn't cause any 
> > problems but has the potential to stop it working.
> > 
> > Fin.
> > 
> > -Stut
> > 
> > -- 
> > http://stut.net/
> > 
> > No virus found in this incoming message.
> > Checked by AVG Free Edition. 
> > Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date:
> 11/18/2007
> > 5:15 PM
> >  
> > 
> > No virus found in this outgoing message.
> > Checked by AVG Free Edition. 
> > Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date:
> 11/18/2007
> > 5:15 PM
> >  
> > 
> > -- 
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> 
> No virus found in this incoming message.
> Checked by AVG Free Edition. 
> Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date: 11/18/2007
> 5:15 PM
>  
> 
> No virus found in this outgoing message.
> Checked by AVG Free Edition. 
> Version: 7.5.503 / Virus Database: 269.16.0/1137 - Release Date: 11/18/2007
> 5:15 PM
>  
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to