Re: [PHP] two small issues with php mail OT
2007. 11. 21, szerda keltezéssel 18.38-kor Dimiter Ivanov ezt írta: On Nov 21, 2007 2:29 AM, Børge Holen [EMAIL PROTECTED] wrote: On Wednesday 21 November 2007 00:53:14 Jochem Maas wrote: Stephen Johnson wrote: Who says you can't please them all... ;) Erin Brokovich. nah you sure? why cant i remember that. must be that early altzheimers syndrome or something -- Stephen Johnson c | eh The Lone Coder http://www.thelonecoder.com continuing the struggle against bad code http://www.thumbnailresume.com -- From: Jay Blanchard [EMAIL PROTECTED] Date: Tue, 20 Nov 2007 14:25:21 -0600 To: Stephen Johnson [EMAIL PROTECTED], php-general@lists.php.net Conversation: [PHP] two small issues with php mail OT Subject: RE: [PHP] two small issues with php mail OT [snip] I wrote about this a long time ago ... In a galaxy far far away... http://www.thelonecoder.com/Blog/?p=7 Be good lemmings and do as you're told... [/snip] Sitting squarely on the fence he is -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Since it's the OT thread, i can mention some of Brad's most memorable postings (for me) in this list. I played around with the gmail search function, i dug this one : http://marc.info/?l=php-generalm=117921190509410w=2 OMG I didn't even realize that this Brad with the homework stuff thread was the same as that Brad who bragged about being engineer for military and stuff... comparing the things he said in a couple of his mails shows that he is at least 3 different people... that must be hard ;) greets, Zoltán Németh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] two small issues with php mail OT
Daniel Brown [EMAIL PROTECTED] wrote: On Nov 21, 2007 11:38 AM, Dimiter Ivanov [EMAIL PROTECTED] wrote: On Nov 21, 2007 2:29 AM, Børge Holen [EMAIL PROTECTED] wrote: On Wednesday 21 November 2007 00:53:14 Jochem Maas wrote: Stephen Johnson wrote: Who says you can't please them all... ;) Erin Brokovich. nah you sure? why cant i remember that. must be that early altzheimers syndrome or something -- Stephen Johnson c | eh The Lone Coder http://www.thelonecoder.com continuing the struggle against bad code http://www.thumbnailresume.com -- From: Jay Blanchard [EMAIL PROTECTED] Date: Tue, 20 Nov 2007 14:25:21 -0600 To: Stephen Johnson [EMAIL PROTECTED], php-general@lists.php.net Conversation: [PHP] two small issues with php mail OT Subject: RE: [PHP] two small issues with php mail OT [snip] I wrote about this a long time ago ... In a galaxy far far away... http://www.thelonecoder.com/Blog/?p=7 Be good lemmings and do as you're told... [/snip] Sitting squarely on the fence he is -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Since it's the OT thread, i can mention some of Brad's most memorable postings (for me) in this list. I played around with the gmail search function, i dug this one : http://marc.info/?l=php-generalm=117921190509410w=2 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php I nearly forgot all about that! HA! -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 If at first you don't succeed, stick to what you know best so that you can make enough money to pay someone else to do it for you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Anyone else besides me laughing their @$$ off at the fact that brad is one of 2 people who are Federal Technologies Networks sole contacts? And that their website has a flashy front page but drops to nothingness after that? I did make sure to email the lady mentioned in all of those previous emails of his code about the probable increase of spam as well as the probably server attacks. For any who aren't aware, sites such as this are culled for email/server information. So don't post stuff out here unless you're prepared for it. Course I use Thunderbird's filtering/learning and it gets 99% of it. :) Wolf -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] two small issues with php mail OT
On Nov 21, 2007 11:38 AM, Dimiter Ivanov [EMAIL PROTECTED] wrote: On Nov 21, 2007 2:29 AM, Børge Holen [EMAIL PROTECTED] wrote: On Wednesday 21 November 2007 00:53:14 Jochem Maas wrote: Stephen Johnson wrote: Who says you can't please them all... ;) Erin Brokovich. nah you sure? why cant i remember that. must be that early altzheimers syndrome or something -- Stephen Johnson c | eh The Lone Coder http://www.thelonecoder.com continuing the struggle against bad code http://www.thumbnailresume.com -- From: Jay Blanchard [EMAIL PROTECTED] Date: Tue, 20 Nov 2007 14:25:21 -0600 To: Stephen Johnson [EMAIL PROTECTED], php-general@lists.php.net Conversation: [PHP] two small issues with php mail OT Subject: RE: [PHP] two small issues with php mail OT [snip] I wrote about this a long time ago ... In a galaxy far far away... http://www.thelonecoder.com/Blog/?p=7 Be good lemmings and do as you're told... [/snip] Sitting squarely on the fence he is -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Since it's the OT thread, i can mention some of Brad's most memorable postings (for me) in this list. I played around with the gmail search function, i dug this one : http://marc.info/?l=php-generalm=117921190509410w=2 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php I nearly forgot all about that! HA! -- Daniel P. Brown [office] (570-) 587-7080 Ext. 272 [mobile] (570-) 766-8107 If at first you don't succeed, stick to what you know best so that you can make enough money to pay someone else to do it for you. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] two small issues with php mail OT
On Nov 21, 2007 2:29 AM, Børge Holen [EMAIL PROTECTED] wrote: On Wednesday 21 November 2007 00:53:14 Jochem Maas wrote: Stephen Johnson wrote: Who says you can't please them all... ;) Erin Brokovich. nah you sure? why cant i remember that. must be that early altzheimers syndrome or something -- Stephen Johnson c | eh The Lone Coder http://www.thelonecoder.com continuing the struggle against bad code http://www.thumbnailresume.com -- From: Jay Blanchard [EMAIL PROTECTED] Date: Tue, 20 Nov 2007 14:25:21 -0600 To: Stephen Johnson [EMAIL PROTECTED], php-general@lists.php.net Conversation: [PHP] two small issues with php mail OT Subject: RE: [PHP] two small issues with php mail OT [snip] I wrote about this a long time ago ... In a galaxy far far away... http://www.thelonecoder.com/Blog/?p=7 Be good lemmings and do as you're told... [/snip] Sitting squarely on the fence he is -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Since it's the OT thread, i can mention some of Brad's most memorable postings (for me) in this list. I played around with the gmail search function, i dug this one : http://marc.info/?l=php-generalm=117921190509410w=2 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] two small issues with php mail OT
Zoltán Németh [EMAIL PROTECTED] wrote: 2007. 11. 21, szerda keltezéssel 18.38-kor Dimiter Ivanov ezt írta: On Nov 21, 2007 2:29 AM, Børge Holen [EMAIL PROTECTED] wrote: On Wednesday 21 November 2007 00:53:14 Jochem Maas wrote: Stephen Johnson wrote: Who says you can't please them all... ;) Erin Brokovich. nah you sure? why cant i remember that. must be that early altzheimers syndrome or something -- Stephen Johnson c | eh The Lone Coder http://www.thelonecoder.com continuing the struggle against bad code http://www.thumbnailresume.com -- From: Jay Blanchard [EMAIL PROTECTED] Date: Tue, 20 Nov 2007 14:25:21 -0600 To: Stephen Johnson [EMAIL PROTECTED], php-general@lists.php.net Conversation: [PHP] two small issues with php mail OT Subject: RE: [PHP] two small issues with php mail OT [snip] I wrote about this a long time ago ... In a galaxy far far away... http://www.thelonecoder.com/Blog/?p=7 Be good lemmings and do as you're told... [/snip] Sitting squarely on the fence he is -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Since it's the OT thread, i can mention some of Brad's most memorable postings (for me) in this list. I played around with the gmail search function, i dug this one : http://marc.info/?l=php-generalm=117921190509410w=2 OMG I didn't even realize that this Brad with the homework stuff thread was the same as that Brad who bragged about being engineer for military and stuff... comparing the things he said in a couple of his mails shows that he is at least 3 different people... that must be hard ;) greets, Zoltán Németh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Yeah, same guy... and from looking at the previous thread, it looks like the website he was working on was done by someone else. It really looks like he has a shell company he is trying to get out there and failing on. Kinda sad really, since his aced English and Grammar courses didn't teach him the difference between hear and here... Wolf -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] two small issues with php mail OT
-Original Message- From: Wolf [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 21, 2007 2:05 PM To: Zoltán Németh Cc: Børge Holen; php-general@lists.php.net; Dimiter Ivanov Subject: Re: [PHP] two small issues with php mail OT Zoltán Németh [EMAIL PROTECTED] wrote: 2007. 11. 21, szerda keltezéssel 18.38-kor Dimiter Ivanov ezt írta: On Nov 21, 2007 2:29 AM, Børge Holen [EMAIL PROTECTED] wrote: On Wednesday 21 November 2007 00:53:14 Jochem Maas wrote: Stephen Johnson wrote: Who says you can't please them all... ;) Erin Brokovich. nah you sure? why cant i remember that. must be that early altzheimers syndrome or something -- Stephen Johnson c | eh The Lone Coder http://www.thelonecoder.com continuing the struggle against bad code http://www.thumbnailresume.com -- From: Jay Blanchard [EMAIL PROTECTED] Date: Tue, 20 Nov 2007 14:25:21 -0600 To: Stephen Johnson [EMAIL PROTECTED], php-general@lists.php.net Conversation: [PHP] two small issues with php mail OT Subject: RE: [PHP] two small issues with php mail OT [snip] I wrote about this a long time ago ... In a galaxy far far away... http://www.thelonecoder.com/Blog/?p=7 Be good lemmings and do as you're told... [/snip] Sitting squarely on the fence he is -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Since it's the OT thread, i can mention some of Brad's most memorable postings (for me) in this list. I played around with the gmail search function, i dug this one : http://marc.info/?l=php-generalm=117921190509410w=2 OMG I didn't even realize that this Brad with the homework stuff thread was the same as that Brad who bragged about being engineer for military and stuff... comparing the things he said in a couple of his mails shows that he is at least 3 different people... that must be hard ;) greets, Zoltán Németh -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Yeah, same guy... and from looking at the previous thread, it looks like the website he was working on was done by someone else. It really looks like he has a shell company he is trying to get out there and failing on. Kinda sad really, since his aced English and Grammar courses didn't teach him the difference between hear and here... Wolf -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php OMG! I've got an email from the NSA! It says Rob you're behavior is being watched by one of our agents (Mr B_d, we cannot disclose the second letter of his name for security reasons). If you and your friends insist in the tough behavior you are having, you will all have no cookies for breakfast and your coffee will taste like shit while you are coding in the night. Please watch out and take care! Lol -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] two small issues with php mail
But isn't lack of Bcc support in the mail function under windows or some delivery failure under linux the reason Brad is trying to build an SMTP auth function/component?. I mean, what's the requirement here? Sending Bcc headers and getting the emails delivered or talking directly to the SMTP server? Because if it's the first one, it should work in a linux PHP installation... except for some server filter that is to some extent blocking headers for the PHP mail function (probably to avoid spam injections, I don't know). So... just asking, what's the code and what's the system here? It can't be that hard to send out a list of emails with CC / Bcc headers!!! Rob -Original Message- From: Per Jessen [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 20, 2007 5:44 AM To: php-general@lists.php.net Subject: Re: [PHP] two small issues with php mail Jim Lucas wrote: remember, he is wanting to setup SMTP auth. So he will not be using PHP's mail() function. He needs to talk directly to the SMTP server. Uh, I guess I must've missed that bit. Seems a tad complicated for sending an email ... /Per Jessen, Zürich -- 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
Re: [PHP] two small issues with php mail
Jim Lucas wrote: remember, he is wanting to setup SMTP auth. So he will not be using PHP's mail() function. He needs to talk directly to the SMTP server. Uh, I guess I must've missed that bit. Seems a tad complicated for sending an email ... /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] two small issues with php mail
Andrés Robinet wrote: I don't really know the internals of how and why Bcc won't work with the mail function on windows, but if these guys who developed PHPMailer say so... Holy Word, so I wouldn't expect the mail function on Windows to work with Bcc. What you can do? Well... if Bcc is a requirement and you MUST do the code for Windows+PHP you'll have to write you own code to login to a SMTP server or use PHPMailer... (or any other ready made solution). No, you don't have to go such lengths. A BCC-copy is just another email which doesn't list the recipient in the To: header, so you just send your email twice: mail( to-addr, subject, message, headers); mail( bcc-addr, subject, message, headers); /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] two small issues with php mail
Per Jessen wrote: Brad wrote: Where should the bcc go if not the header? In PHP the mail() function does indeed appear to support a bcc: header, but I'm assuming it will be removed before the email is passed to sendmail. /Per Jessen, Zürich remember, he is wanting to setup SMTP auth. So he will not be using PHP's mail() function. He needs to talk directly to the SMTP server. Jim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] two small issues with php mail
Andrés Robinet wrote: It can't be that hard to send out a list of emails with CC / Bcc headers!!! You wouldn't have thought so, but ... /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] two small issues with php mail
Zoltán Németh wrote: actually there is Bcc header, and it is standard. see: http://tools.ietf.org/html/rfc4021#page-9 http://tools.ietf.org/html/rfc2822#page-22 Interesting - I guess I've never needed it. I've never bothered with the mail() function, I find it just as easy to format the email-text and pipe it to sendmail -oi. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] two small issues with php mail
Brad wrote: Where should the bcc go if not the header? In PHP the mail() function does indeed appear to support a bcc: header, but I'm assuming it will be removed before the email is passed to sendmail. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] two small issues with php mail
2007. 11. 19, hétfő keltezéssel 19.54-kor Per Jessen ezt írta: Brad wrote: $headers = 'bcc: [EMAIL PROTECTED]'; Works but corrupts the from portion and changes it to nobody Which I think goes back too the smtp portion. There is no bcc: header. BCC'ing someone is normally done by sending them the email without listing them explicitly in to: or cc:. actually there is Bcc header, and it is standard. see: http://tools.ietf.org/html/rfc4021#page-9 http://tools.ietf.org/html/rfc2822#page-22 greets, Zoltán Németh /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] two small issues with php mail
Andrés Robinet wrote: Brad, This comment is extracted directly from PHPMailer source (before the implementation for the function AddBCC) /** * Adds a Bcc address. Note: this function works * with the SMTP mailer on win32, not with the mail * mailer. * @param string $address * @param string $name * @return void */ I don't really know the internals of how and why Bcc won't work with the mail function on windows, but if these guys who developed PHPMailer say so... Holy Word, so I wouldn't expect the mail function on Windows to work with Bcc. And they were right, all the way up until PHP 4.3.0. From the mail manual page... 4.3.0 (Windows only) All custom headers (like From, Cc, Bcc and Date) are supported, and are not case-sensitive. (As custom headers 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). So if you're using = 4.3.0 on Windows the Bcc header will be parsed. For unix-based servers where mail uses sendmail the Bcc header is supported by that and therefore does not need to be supported by PHP. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] two small issues with php mail
Brad wrote: ? $email = $_REQUEST['email']; $fromaddress = '[EMAIL PROTECTED]'; $fromname = 'Zone of success Club'; $eol = \r\n; $headers = 'From: '.$fromname.' '.$fromaddress.''.$eol; // $headers = 'bcc: '[EMAIL PROTECTED]'; $headers .= 'Reply-To: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'Return-Path: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'X-Mailer: PHP '.phpversion().$eol; $headers .= 'Content-Type: text/html; charset=iso-8859-1'.$eol; $headers .= 'Content-Transfer-Encoding: 8bit'; $subject = 'Your free book!'; $body = 'a href=http://www.zoneofsuccessclub.com/freePDF/autopilotebook.pdf;Click ME/a Here is your FREE autopilot book'; mail($email, $subject, $body, $headers); ? Take this, be grateful and feel free to try Ruby. Email addresses have been changed to protect your victims. ?php // You REALLY REALLY need to be doing some validation on this variable $email = $_REQUEST['email']; // This is the address the email will appear to come from $fromaddress = '[EMAIL PROTECTED]'; // And this is the name $fromname = 'Zone of success Club'; // This is the header separator, it *does* need the \r $eol = \r\n; // Now we start building the headers, starting with from $headers = 'From: '.$fromname.' '.$fromaddress.''.$eol; // Then we *concatenate* the next header to $headers $headers .= 'bcc: [EMAIL PROTECTED]'.$eol; // Some more headers, some pointless but I can't be arsed to argue $headers .= 'Reply-To: '.$fromname.' '.$fromaddress.''.$eol; // Removed the name on this one - it's not supposed to have one $headers .= 'Return-Path: '.$fromaddress.''.$eol; $headers .= 'X-Mailer: PHP '.phpversion().$eol; $headers .= 'Content-Type: text/html; charset=iso-8859-1'.$eol; $headers .= 'Content-Transfer-Encoding: 8bit'; $subject = 'Your free book!'; $body = 'a href=http://www.zoneofsuccessclub.com/freePDF/autopilotebook.pdf;Click ME/a Here is your FREE autopilot book'; mail($email, $subject, $body, $headers); ? I've tested this on a pretty standard install of PHP 5.1.1, and it works, bcc and all. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] two small issues with php mail
Jim Lucas [EMAIL PROTECTED] wrote: Per Jessen wrote: Brad wrote: !-- Snip for brevity -- remember, he is wanting to setup SMTP auth. So he will not be using PHP's mail() function. He needs to talk directly to the SMTP server. Jim Jim, At this point, we need to just get his homework assignment parameters from Brad so we can see what next questions he'll have... I'm not sure he needs to do SMTP auth but even if he does, he's going to need to be able to write correct syntax and debug his code along the way... Wolf -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] two small issues with php mail
Stut wrote: Brad wrote: ? $email = $_REQUEST['email']; $fromaddress = '[EMAIL PROTECTED]'; $fromname = 'Zone of success Club'; $eol = \r\n; $headers = 'From: '.$fromname.' '.$fromaddress.''.$eol; // $headers = 'bcc: '[EMAIL PROTECTED]'; $headers .= 'Reply-To: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'Return-Path: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'X-Mailer: PHP '.phpversion().$eol; $headers .= 'Content-Type: text/html; charset=iso-8859-1'.$eol; $headers .= 'Content-Transfer-Encoding: 8bit'; $subject = 'Your free book!'; $body = 'a href=http://www.zoneofsuccessclub.com/freePDF/autopilotebook.pdf;Click ME/a Here is your FREE autopilot book'; mail($email, $subject, $body, $headers); ? Take this, be grateful and feel free to try Ruby. Email addresses have been changed to protect your victims. ?php // You REALLY REALLY need to be doing some validation on this variable $email = $_REQUEST['email']; // This is the address the email will appear to come from $fromaddress = '[EMAIL PROTECTED]'; // And this is the name $fromname = 'Zone of success Club'; // This is the header separator, it *does* need the \r $eol = \r\n; // Now we start building the headers, starting with from $headers = 'From: '.$fromname.' '.$fromaddress.''.$eol; // Then we *concatenate* the next header to $headers $headers .= 'bcc: [EMAIL PROTECTED]'.$eol; // Some more headers, some pointless but I can't be arsed to argue $headers .= 'Reply-To: '.$fromname.' '.$fromaddress.''.$eol; // Removed the name on this one - it's not supposed to have one $headers .= 'Return-Path: '.$fromaddress.''.$eol; $headers .= 'X-Mailer: PHP '.phpversion().$eol; $headers .= 'Content-Type: text/html; charset=iso-8859-1'.$eol; $headers .= 'Content-Transfer-Encoding: 8bit'; $subject = 'Your free book!'; $body = 'a href=http://www.zoneofsuccessclub.com/freePDF/autopilotebook.pdf;Click ME/a Here is your FREE autopilot book'; mail($email, $subject, $body, $headers); ? I've tested this on a pretty standard install of PHP 5.1.1, and it works, bcc and all. -Stut You forgot the second part of the project, SMTP auth. Can't do it this way. Have to use fsockopen() or something to talk directly to the SMTP server. -- Jim Lucas Perseverance is not a long race; it is many short races one after the other Walter Elliot Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act II, Scene V by William Shakespeare -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] two small issues with php mail
Wolf wrote: Jim Lucas [EMAIL PROTECTED] wrote: Per Jessen wrote: Brad wrote: !-- Snip for brevity -- remember, he is wanting to setup SMTP auth. So he will not be using PHP's mail() function. He needs to talk directly to the SMTP server. Jim Jim, At this point, we need to just get his homework assignment parameters from Brad so we can see what next questions he'll have... I'm not sure he needs to do SMTP auth but even if he does, he's going to need to be able to write correct syntax and debug his code along the way... Wolf Well, re-reading his first post, it does seem like the only two things he is interested in solving, besides syntax and formatting, are SMTP auth and using the BCC to send to additional addresses. -- Jim Lucas Perseverance is not a long race; it is many short races one after the other Walter Elliot Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act II, Scene V by William Shakespeare -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] two small issues with php mail
Wolf wrote: Jim Lucas [EMAIL PROTECTED] wrote: Per Jessen wrote: Brad wrote: !-- Snip for brevity -- remember, he is wanting to setup SMTP auth. So he will not be using PHP's mail() function. He needs to talk directly to the SMTP server. Jim Jim, At this point, we need to just get his homework assignment parameters from Brad so we can see what next questions he'll have... I'm not sure he needs to do SMTP auth but even if he does, he's going to need to be able to write correct syntax and debug his code along the way... Wolf Well, re-reading his first post, it does seem like the only two things he is interested in solving, besides syntax and formatting, are SMTP auth and using the BCC to send to additional addresses. -- Jim Lucas Perseverance is not a long race; it is many short races one after the other Walter Elliot Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act II, Scene V by William Shakespeare -- Well, I didn't read Brad's first post (I subscribed to this list recently); but what I know for sure is that PHP: Talking to a SMTP server cannot be the title for an assignment in a first course on PHP (judging for Brad's inquiries, this is it). Nobody (me included) likes doing assignments for anybody, and that's not what this list is for either... but I've not seen any of you throwing a link for a video tutorial. When I started learning PHP it was kind of a new world, though I had some experience in C, C++, C#, VB, Delphi, Actionscript and Javascript. So I RTFM for the syntactic elements to compare and see the differences with other languages I knew, and then I jumped over a set of tutorials for the basic functionality like using $_GET, $_POST, $_SESSION, sending out emails and accessing databases (for Spanish speakers like me we have http://www.illasaron.com with tones of GB in FREE training videos, for English speakers I don't know). Only when I felt a bit comfortable I started coding my stuff... and I didn't bother anybody in any forum or mail list. I bet my life that the only one goal of Brad's assignment is How to populate the headers parameter for the mail function and the rest of it... is the result of Brad's googling and not knowing what to ask. I believe 120% he wants SMTP Auth only because his code is failing and he thinks that will fix the issue. Anyway... all that said, I only hope that once he gets it straight he says Thanks guys, this was the issue and this is how it got solved Rob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] two small issues with php mail
On Nov 20, 2007 9:13 AM, Wolf [EMAIL PROTECTED] wrote: Jim Lucas [EMAIL PROTECTED] wrote: Wolf wrote: Jim Lucas [EMAIL PROTECTED] wrote: Per Jessen wrote: Brad wrote: !-- Snip for brevity -- remember, he is wanting to setup SMTP auth. So he will not be using PHP's mail() function. He needs to talk directly to the SMTP server. Jim Jim, At this point, we need to just get his homework assignment parameters from Brad so we can see what next questions he'll have... I'm not sure he needs to do SMTP auth but even if he does, he's going to need to be able to write correct syntax and debug his code along the way... Wolf Well, re-reading his first post, it does seem like the only two things he is interested in solving, besides syntax and formatting, are SMTP auth and using the BCC to send to additional addresses. -- Jim Lucas Actually, reading his first post tells you that he is trying to get this to work for his business and he's too much into this guy for $$$ to go with a MySQL databased mailing list setup to get his email sent... Wolf Is there a community agreement that this guy (Brad) should be blacklisted? =P ~Philip
Re: [PHP] two small issues with php mail
Jim Lucas [EMAIL PROTECTED] wrote: Wolf wrote: Jim Lucas [EMAIL PROTECTED] wrote: Per Jessen wrote: Brad wrote: !-- Snip for brevity -- remember, he is wanting to setup SMTP auth. So he will not be using PHP's mail() function. He needs to talk directly to the SMTP server. Jim Jim, At this point, we need to just get his homework assignment parameters from Brad so we can see what next questions he'll have... I'm not sure he needs to do SMTP auth but even if he does, he's going to need to be able to write correct syntax and debug his code along the way... Wolf Well, re-reading his first post, it does seem like the only two things he is interested in solving, besides syntax and formatting, are SMTP auth and using the BCC to send to additional addresses. -- Jim Lucas Actually, reading his first post tells you that he is trying to get this to work for his business and he's too much into this guy for $$$ to go with a MySQL databased mailing list setup to get his email sent... Wolf -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] two small issues with php mail
Jim Lucas wrote: Stut wrote: Brad wrote: ? $email = $_REQUEST['email']; $fromaddress = '[EMAIL PROTECTED]'; $fromname = 'Zone of success Club'; $eol = \r\n; $headers = 'From: '.$fromname.' '.$fromaddress.''.$eol; // $headers = 'bcc: '[EMAIL PROTECTED]'; $headers .= 'Reply-To: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'Return-Path: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'X-Mailer: PHP '.phpversion().$eol; $headers .= 'Content-Type: text/html; charset=iso-8859-1'.$eol; $headers .= 'Content-Transfer-Encoding: 8bit'; $subject = 'Your free book!'; $body = 'a href=http://www.zoneofsuccessclub.com/freePDF/autopilotebook.pdf;Click ME/a Here is your FREE autopilot book'; mail($email, $subject, $body, $headers); ? Take this, be grateful and feel free to try Ruby. Email addresses have been changed to protect your victims. ?php // You REALLY REALLY need to be doing some validation on this variable $email = $_REQUEST['email']; // This is the address the email will appear to come from $fromaddress = '[EMAIL PROTECTED]'; // And this is the name $fromname = 'Zone of success Club'; // This is the header separator, it *does* need the \r $eol = \r\n; // Now we start building the headers, starting with from $headers = 'From: '.$fromname.' '.$fromaddress.''.$eol; // Then we *concatenate* the next header to $headers $headers .= 'bcc: [EMAIL PROTECTED]'.$eol; // Some more headers, some pointless but I can't be arsed to argue $headers .= 'Reply-To: '.$fromname.' '.$fromaddress.''.$eol; // Removed the name on this one - it's not supposed to have one $headers .= 'Return-Path: '.$fromaddress.''.$eol; $headers .= 'X-Mailer: PHP '.phpversion().$eol; $headers .= 'Content-Type: text/html; charset=iso-8859-1'.$eol; $headers .= 'Content-Transfer-Encoding: 8bit'; $subject = 'Your free book!'; $body = 'a href=http://www.zoneofsuccessclub.com/freePDF/autopilotebook.pdf;Click ME/a Here is your FREE autopilot book'; mail($email, $subject, $body, $headers); ? I've tested this on a pretty standard install of PHP 5.1.1, and it works, bcc and all. -Stut You forgot the second part of the project, SMTP auth. Can't do it this way. Have to use fsockopen() or something to talk directly to the SMTP server. Point me to the message where Brad mentions SMTP auth. I can't find it. Looking back at the thread you were the first person to mention SMTP auth. Brad talked about SMTP (clearly not understanding what it is) - you added the auth. Let's not go over-complicating the issue, the guy is already having some serious problems. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] two small issues with php mail
Børge Holen wrote: OMG the top posting on this freakin' issue is a headache Whereas removing all of the previous message is like a sensual massage. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] two small issues with php mail
OMG the top posting on this freakin' issue is a headache -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] two small issues with php mail
On Tuesday 20 November 2007 17:49:02 Stut wrote: Børge Holen wrote: OMG the top posting on this freakin' issue is a headache Whereas removing all of the previous message is like a sensual massage. okey... -Stut -- http://stut.net/ -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] two small issues with php mail
Stut wrote: Børge Holen wrote: OMG the top posting on this freakin' issue is a headache Whereas removing all of the previous message is like a sensual massage. Pure stress-relief. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] two small issues with php mail
I hate top posters. Pure evil. OMG the top posting on this freakin' issue is a headache Whereas removing all of the previous message is like a sensual massage Pure stress-relief. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] two small issues with php mail
Honestly for me... top posting, On Nov 20, 2007, at 1:19 PM, Michael McGlothlin wrote: I hate top posters. Pure evil. OMG the top posting on this freakin' issue is a headache Whereas removing all of the previous message is like a sensual massage inline posting, Pure stress-relief. bottom posting... None of it matters... As long as it's CONSISTENT through out the thread :) It's all just as easy for me to follow. Now... Trimming on the other hand annoys me... if you trim to much then you have to go back and look up the e-mail that the info was in :) *Gets ready to duck* :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- Jason Pruim Raoset Inc. Technology Manager MQC Specialist 3251 132nd ave Holland, MI, 49424 www.raoset.com [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] two small issues with php mail
Personally At 1:31 PM -0500 11/20/07, Jason Pruim wrote: I preferHonestly for me... top posting, sideOn Nov 20, 2007, at 1:19 PM, Michael McGlothlin wrote: posting. I hate top posters. Pure evil. -steve OMG the top posting on this freakin' issue is a headache Whereas removing all of the previous message is like a sensual massage inline posting, PS. Sometimes interlacing is Pure stress-relief. appropriate as well. bottom posting... None of it matters... As long as it's CONSISTENT through out the thread :) It's all just as easy for me to follow. Now... Trimming on the other hand annoys me... if you trim to much then you have to go back and look up the e-mail that the info was in :) *Gets ready to duck* :) -- +--- my people are the people of the dessert, ---+ | Steve Edberghttp://pgfsun.ucdavis.edu/ | | UC Davis Genome Center[EMAIL PROTECTED] | | Bioinformatics programming/database/sysadmin (530)754-9127 | + said t e lawrence, picking up his fork + -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] two small issues with php mail
I wrote about this a long time ago ... In a galaxy far far away... http://www.thelonecoder.com/Blog/?p=7 Be good lemmings and do as you're told... -- Stephen Johnson c | eh The Lone Coder http://www.thelonecoder.com continuing the struggle against bad code http://www.thumbnailresume.com -- From: Michael McGlothlin [EMAIL PROTECTED] Date: Tue, 20 Nov 2007 11:19:22 -0700 To: Per Jessen [EMAIL PROTECTED] Cc: php-general@lists.php.net Subject: Re: [PHP] two small issues with php mail I hate top posters. Pure evil. OMG the top posting on this freakin' issue is a headache Whereas removing all of the previous message is like a sensual massage Pure stress-relief. -- 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
RE: [PHP] two small issues with php mail OT
[snip] I wrote about this a long time ago ... In a galaxy far far away... http://www.thelonecoder.com/Blog/?p=7 Be good lemmings and do as you're told... [/snip] Sitting squarely on the fence he is -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] two small issues with php mail OT
Who says you can't please them all... ;) -- Stephen Johnson c | eh The Lone Coder http://www.thelonecoder.com continuing the struggle against bad code http://www.thumbnailresume.com -- From: Jay Blanchard [EMAIL PROTECTED] Date: Tue, 20 Nov 2007 14:25:21 -0600 To: Stephen Johnson [EMAIL PROTECTED], php-general@lists.php.net Conversation: [PHP] two small issues with php mail OT Subject: RE: [PHP] two small issues with php mail OT [snip] I wrote about this a long time ago ... In a galaxy far far away... http://www.thelonecoder.com/Blog/?p=7 Be good lemmings and do as you're told... [/snip] Sitting squarely on the fence he is -- 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
Re: [PHP] two small issues with php mail OT
Stephen Johnson wrote: Who says you can't please them all... ;) Erin Brokovich. -- Stephen Johnson c | eh The Lone Coder http://www.thelonecoder.com continuing the struggle against bad code http://www.thumbnailresume.com -- From: Jay Blanchard [EMAIL PROTECTED] Date: Tue, 20 Nov 2007 14:25:21 -0600 To: Stephen Johnson [EMAIL PROTECTED], php-general@lists.php.net Conversation: [PHP] two small issues with php mail OT Subject: RE: [PHP] two small issues with php mail OT [snip] I wrote about this a long time ago ... In a galaxy far far away... http://www.thelonecoder.com/Blog/?p=7 Be good lemmings and do as you're told... [/snip] Sitting squarely on the fence he is -- 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
Re: [PHP] two small issues with php mail OT
On Wednesday 21 November 2007 00:53:14 Jochem Maas wrote: Stephen Johnson wrote: Who says you can't please them all... ;) Erin Brokovich. nah you sure? why cant i remember that. must be that early altzheimers syndrome or something -- Stephen Johnson c | eh The Lone Coder http://www.thelonecoder.com continuing the struggle against bad code http://www.thumbnailresume.com -- From: Jay Blanchard [EMAIL PROTECTED] Date: Tue, 20 Nov 2007 14:25:21 -0600 To: Stephen Johnson [EMAIL PROTECTED], php-general@lists.php.net Conversation: [PHP] two small issues with php mail OT Subject: RE: [PHP] two small issues with php mail OT [snip] I wrote about this a long time ago ... In a galaxy far far away... http://www.thelonecoder.com/Blog/?p=7 Be good lemmings and do as you're told... [/snip] Sitting squarely on the fence he is -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- --- Børge Holen http://www.arivene.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] two small issues with php mail
Brad wrote: Implementing Bcc and smtp. #1 email is only being sent to a few recipients. I need to implement $smtp = ‘localhost’; if the previous line is a cut/paste, it looks like you are using M$ special quotes or back tics maybe. make sure they are single or double quotes and you should be good to go. Somewhere, but I keep getting parse errors? #2 trying to do a Bcc but that gives me parse errors as well It should be as easy as? $Bcc [EMAIL PROTECTED]; $eol = \r\n; Here is the working code, but if I implement the above needed inserts anywhere, I get a big ‘ol fat parse error Any assistance would be truly appreciated. An explanation of why would really help since this is for a school project. Working code as is: ? $email = $_REQUEST['email']; $fromaddress = '[EMAIL PROTECTED]'; $fromname = 'Zone of success Club'; $eol = \r\n; $headers = 'From: '.$fromname.' '.$fromaddress.''.$eol; // $headers = 'bcc: '[EMAIL PROTECTED]'; You have an extra single quote in the previous line. Hence your parse error. $headers .= 'Reply-To: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'Return-Path: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'X-Mailer: PHP '.phpversion().$eol; $headers .= 'Content-Type: text/html; charset=iso-8859-1'.$eol; $headers .= 'Content-Transfer-Encoding: 8bit'; $subject = 'Your free book!'; $body = 'a href=http://www.zoneofsuccessclub.com/freePDF/autopilotebook.pdf;Click ME/a Here is your FREE autopilot book'; mail($email, $subject, $body, $headers); ? 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 -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act II, Scene V by William Shakespeare -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] two small issues with php mail
$headers = 'bcc: [EMAIL PROTECTED]'; Works but corrupts the from portion and changes it to nobody Which I think goes back too the smtp portion. Let me try that! Thank you! -Original Message- From: Jim Lucas [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 12:49 PM To: Brad Cc: php-general@lists.php.net Subject: Re: [PHP] two small issues with php mail Brad wrote: Implementing Bcc and smtp. #1 email is only being sent to a few recipients. I need to implement $smtp = ‘localhost’; if the previous line is a cut/paste, it looks like you are using M$ special quotes or back tics maybe. make sure they are single or double quotes and you should be good to go. Somewhere, but I keep getting parse errors? #2 trying to do a Bcc but that gives me parse errors as well It should be as easy as? $Bcc [EMAIL PROTECTED]; $eol = \r\n; Here is the working code, but if I implement the above needed inserts anywhere, I get a big ‘ol fat parse error Any assistance would be truly appreciated. An explanation of why would really help since this is for a school project. Working code as is: ? $email = $_REQUEST['email']; $fromaddress = '[EMAIL PROTECTED]'; $fromname = 'Zone of success Club'; $eol = \r\n; $headers = 'From: '.$fromname.' '.$fromaddress.''.$eol; // $headers = 'bcc: '[EMAIL PROTECTED]'; You have an extra single quote in the previous line. Hence your parse error. $headers .= 'Reply-To: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'Return-Path: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'X-Mailer: PHP '.phpversion().$eol; $headers .= 'Content-Type: text/html; charset=iso-8859-1'.$eol; $headers .= 'Content-Transfer-Encoding: 8bit'; $subject = 'Your free book!'; $body = 'a href=http://www.zoneofsuccessclub.com/freePDF/autopilotebook.pdf;Click ME/a Here is your FREE autopilot book'; mail($email, $subject, $body, $headers); ? 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 -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act II, Scene V by William Shakespeare -- 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
RE: [PHP] two small issues with php mail
No parse error, but still nobody. Here is my new code. How do you tell the difference between the need for '' and ? Working kind of code ? $email = $_REQUEST['email']; $fromaddress = '[EMAIL PROTECTED]'; $fromname = 'Zone of success Club'; $eol = \r\n; $smtp = localhost; $headers = 'From: '.$fromname.' '.$fromaddress.''.$eol; $headers = 'bcc: [EMAIL PROTECTED]'; $headers .= 'Reply-To: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'Return-Path: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'X-Mailer: PHP '.phpversion().$eol; $headers .= 'Content-Type: text/html; charset=iso-8859-1'.$eol; $headers .= 'Content-Transfer-Encoding: 8bit'; $subject = 'Your free book!'; $body = 'a href=http://www.zoneofsuccessclub.com/freePDF/autopilotebook.pdf;Click ME/a Here is your FREE autopilot book'; mail($email, $subject, $body, $headers); ? -Original Message- From: Brad [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 1:26 PM To: 'Jim Lucas' Cc: php-general@lists.php.net Subject: RE: [PHP] two small issues with php mail $headers = 'bcc: [EMAIL PROTECTED]'; Works but corrupts the from portion and changes it to nobody Which I think goes back too the smtp portion. Let me try that! Thank you! -Original Message- From: Jim Lucas [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 12:49 PM To: Brad Cc: php-general@lists.php.net Subject: Re: [PHP] two small issues with php mail Brad wrote: Implementing Bcc and smtp. #1 email is only being sent to a few recipients. I need to implement $smtp = ‘localhost’; if the previous line is a cut/paste, it looks like you are using M$ special quotes or back tics maybe. make sure they are single or double quotes and you should be good to go. Somewhere, but I keep getting parse errors? #2 trying to do a Bcc but that gives me parse errors as well It should be as easy as? $Bcc [EMAIL PROTECTED]; $eol = \r\n; Here is the working code, but if I implement the above needed inserts anywhere, I get a big ‘ol fat parse error Any assistance would be truly appreciated. An explanation of why would really help since this is for a school project. Working code as is: ? $email = $_REQUEST['email']; $fromaddress = '[EMAIL PROTECTED]'; $fromname = 'Zone of success Club'; $eol = \r\n; $headers = 'From: '.$fromname.' '.$fromaddress.''.$eol; // $headers = 'bcc: '[EMAIL PROTECTED]'; You have an extra single quote in the previous line. Hence your parse error. $headers .= 'Reply-To: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'Return-Path: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'X-Mailer: PHP '.phpversion().$eol; $headers .= 'Content-Type: text/html; charset=iso-8859-1'.$eol; $headers .= 'Content-Transfer-Encoding: 8bit'; $subject = 'Your free book!'; $body = 'a href=http://www.zoneofsuccessclub.com/freePDF/autopilotebook.pdf;Click ME/a Here is your FREE autopilot book'; mail($email, $subject, $body, $headers); ? 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 -- Jim Lucas Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act II, Scene V by William Shakespeare -- 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 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
RE: [PHP] two small issues with php mail
Brad wrote: $headers = 'bcc: [EMAIL PROTECTED]'; Works but corrupts the from portion and changes it to nobody Which I think goes back too the smtp portion. There is no bcc: header. BCC'ing someone is normally done by sending them the email without listing them explicitly in to: or cc:. /Per Jessen, Zürich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] two small issues with php mail
Apperently my smtp portion is not working. This did not solve my problem of sending email to only 50% of the recipients, just no parse error This is what the php mail manual page suggest? And Where should the bcc go if not the header? -Original Message- From: Per Jessen [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 1:55 PM To: php-general@lists.php.net Subject: RE: [PHP] two small issues with php mail Brad wrote: $headers = 'bcc: [EMAIL PROTECTED]'; Works but corrupts the from portion and changes it to nobody Which I think goes back too the smtp portion. There is no bcc: header. BCC'ing someone is normally done by sending them the email without listing them explicitly in to: or cc:. /Per Jessen, Zürich -- 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
Re: [PHP] two small issues with php mail
Brad wrote: Implementing Bcc and smtp. Here we go again #1 email is only being sent to a few recipients. I need to implement $smtp = ‘localhost’; Somewhere, but I keep getting parse errors? Those are not normal quotes, but I'm guessing you actually typed that in the evil that is Outlook. #2 trying to do a Bcc but that gives me parse errors as well It should be as easy as? $Bcc [EMAIL PROTECTED]; $eol = \r\n; That's not valid code. Ok, the second bit is, but still rather pointless. Here is the working code, but if I implement the above needed inserts anywhere, I get a big ‘ol fat parse error Any assistance would be truly appreciated. An explanation of why would really help since this is for a school project. Ahh, suddenly everything becomes clear. You can't use PHPMailer because that would mean that you didn't learn it yourself you just used somebody elses work. So instead you ask here rather than reading the PHPMailer source code. Nice. Working code as is: ? $email = $_REQUEST['email']; $fromaddress = '[EMAIL PROTECTED]'; $fromname = 'Zone of success Club'; $eol = \r\n; $headers = 'From: '.$fromname.' '.$fromaddress.''.$eol; // $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. $headers .= 'Reply-To: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'Return-Path: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'X-Mailer: PHP '.phpversion().$eol; $headers .= 'Content-Type: text/html; charset=iso-8859-1'.$eol; $headers .= 'Content-Transfer-Encoding: 8bit'; $subject = 'Your free book!'; $body = 'a href=http://www.zoneofsuccessclub.com/freePDF/autopilotebook.pdf;Click ME/a Here is your FREE autopilot book'; Click ME indeed. I'm guessing this isn't an HCI course you're doing. mail($email, $subject, $body, $headers); ? Try the veal. -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] two small issues with php mail
PHP mailer is not in the assignment and will be counted against me! -Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 3:43 PM To: Brad Cc: php-general@lists.php.net Subject: Re: [PHP] two small issues with php mail Brad wrote: Implementing Bcc and smtp. Here we go again #1 email is only being sent to a few recipients. I need to implement $smtp = ‘localhost’; Somewhere, but I keep getting parse errors? Those are not normal quotes, but I'm guessing you actually typed that in the evil that is Outlook. #2 trying to do a Bcc but that gives me parse errors as well It should be as easy as? $Bcc [EMAIL PROTECTED]; $eol = \r\n; That's not valid code. Ok, the second bit is, but still rather pointless. Here is the working code, but if I implement the above needed inserts anywhere, I get a big ‘ol fat parse error Any assistance would be truly appreciated. An explanation of why would really help since this is for a school project. Ahh, suddenly everything becomes clear. You can't use PHPMailer because that would mean that you didn't learn it yourself you just used somebody elses work. So instead you ask here rather than reading the PHPMailer source code. Nice. Working code as is: ? $email = $_REQUEST['email']; $fromaddress = '[EMAIL PROTECTED]'; $fromname = 'Zone of success Club'; $eol = \r\n; $headers = 'From: '.$fromname.' '.$fromaddress.''.$eol; // $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. $headers .= 'Reply-To: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'Return-Path: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'X-Mailer: PHP '.phpversion().$eol; $headers .= 'Content-Type: text/html; charset=iso-8859-1'.$eol; $headers .= 'Content-Transfer-Encoding: 8bit'; $subject = 'Your free book!'; $body = 'a href=http://www.zoneofsuccessclub.com/freePDF/autopilotebook.pdf;Click ME/a Here is your FREE autopilot book'; Click ME indeed. I'm guessing this isn't an HCI course you're doing. mail($email, $subject, $body, $headers); ? Try the veal. -Stut -- http://stut.net/ -- 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
RE: [PHP] two small issues with php mail
This information is pulled directly off the php website when used for other applications, so if I am wrong, then so are they. As for php mailer, my professor explained it very well today, Learn the in's and out's of the programming and it's quarks to understand the logic and then he will show us the tricks. Yes, here we go again! I am just seeking valid knowledge and understanding. Reading material is great too as long as it is relevant. Sarcasm does not help with the learning curve sir! -Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 3:43 PM To: Brad Cc: php-general@lists.php.net Subject: Re: [PHP] two small issues with php mail Brad wrote: Implementing Bcc and smtp. Here we go again #1 email is only being sent to a few recipients. I need to implement $smtp = ‘localhost’; Somewhere, but I keep getting parse errors? Those are not normal quotes, but I'm guessing you actually typed that in the evil that is Outlook. #2 trying to do a Bcc but that gives me parse errors as well It should be as easy as? $Bcc [EMAIL PROTECTED]; $eol = \r\n; That's not valid code. Ok, the second bit is, but still rather pointless. Here is the working code, but if I implement the above needed inserts anywhere, I get a big ‘ol fat parse error Any assistance would be truly appreciated. An explanation of why would really help since this is for a school project. Ahh, suddenly everything becomes clear. You can't use PHPMailer because that would mean that you didn't learn it yourself you just used somebody elses work. So instead you ask here rather than reading the PHPMailer source code. Nice. Working code as is: ? $email = $_REQUEST['email']; $fromaddress = '[EMAIL PROTECTED]'; $fromname = 'Zone of success Club'; $eol = \r\n; $headers = 'From: '.$fromname.' '.$fromaddress.''.$eol; // $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. $headers .= 'Reply-To: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'Return-Path: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'X-Mailer: PHP '.phpversion().$eol; $headers .= 'Content-Type: text/html; charset=iso-8859-1'.$eol; $headers .= 'Content-Transfer-Encoding: 8bit'; $subject = 'Your free book!'; $body = 'a href=http://www.zoneofsuccessclub.com/freePDF/autopilotebook.pdf;Click ME/a Here is your FREE autopilot book'; Click ME indeed. I'm guessing this isn't an HCI course you're doing. mail($email, $subject, $body, $headers); ? Try the veal. -Stut -- http://stut.net/ -- 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
Re: [PHP] two small issues with php mail
Brad wrote: This information is pulled directly off the php website when used for other applications, so if I am wrong, then so are they. As for php mailer, my professor explained it very well today, Learn the in's and out's of the programming and it's quarks to understand the logic and then he will show us the tricks. I wouldn't call PHPMailer a trick as such, but your professor is absolutely right about learning the in's and out's of programming. Unfortunately your posts so far have demonstrated that you haven't yet grasped the syntactic basics yet but it doesn't seem to bother you. Yes, here we go again! I am just seeking valid knowledge and understanding. Reading material is great too as long as it is relevant. The use of BCC with the PHP mail function is pretty well-explained on the PHP manual page for said function. Sarcasm does not help with the learning curve sir! You will find that if you read my reply carefully the answers you seek are in there. I rarely answer a question with sarcasm alone, but I'm a little ashamed to say that it does happen occasionally. I hang about on this list for entertainment. I get that from helping people and mocking those I think deserve it. If you don't like it feel free to ignore me or add me to your kill list, but don't ask me to stop. -Stut -- http://stut.net/ -Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 3:43 PM To: Brad Cc: php-general@lists.php.net Subject: Re: [PHP] two small issues with php mail Brad wrote: Implementing Bcc and smtp. Here we go again #1 email is only being sent to a few recipients. I need to implement $smtp = ‘localhost’; Somewhere, but I keep getting parse errors? Those are not normal quotes, but I'm guessing you actually typed that in the evil that is Outlook. #2 trying to do a Bcc but that gives me parse errors as well It should be as easy as? $Bcc [EMAIL PROTECTED]; $eol = \r\n; That's not valid code. Ok, the second bit is, but still rather pointless. Here is the working code, but if I implement the above needed inserts anywhere, I get a big ‘ol fat parse error Any assistance would be truly appreciated. An explanation of why would really help since this is for a school project. Ahh, suddenly everything becomes clear. You can't use PHPMailer because that would mean that you didn't learn it yourself you just used somebody elses work. So instead you ask here rather than reading the PHPMailer source code. Nice. Working code as is: ? $email = $_REQUEST['email']; $fromaddress = '[EMAIL PROTECTED]'; $fromname = 'Zone of success Club'; $eol = \r\n; $headers = 'From: '.$fromname.' '.$fromaddress.''.$eol; // $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. $headers .= 'Reply-To: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'Return-Path: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'X-Mailer: PHP '.phpversion().$eol; $headers .= 'Content-Type: text/html; charset=iso-8859-1'.$eol; $headers .= 'Content-Transfer-Encoding: 8bit'; $subject = 'Your free book!'; $body = 'a href=http://www.zoneofsuccessclub.com/freePDF/autopilotebook.pdf;Click ME/a Here is your FREE autopilot book'; Click ME indeed. I'm guessing this isn't an HCI course you're doing. mail($email, $subject, $body, $headers); ? Try the veal. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] two small issues with php mail
This is why I am on this mailing instead of the php site for their mailer which is utterly useless! I could probably recite the entire page by heart and gained nothing compared to the insight and reading material offered by this list. Just seeking knowledgeable guidance! Any assistance on methods to solve my issue would be duly appreciated! -Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 4:17 PM To: Brad Cc: php-general@lists.php.net Subject: Re: [PHP] two small issues with php mail Brad wrote: This information is pulled directly off the php website when used for other applications, so if I am wrong, then so are they. As for php mailer, my professor explained it very well today, Learn the in's and out's of the programming and it's quarks to understand the logic and then he will show us the tricks. I wouldn't call PHPMailer a trick as such, but your professor is absolutely right about learning the in's and out's of programming. Unfortunately your posts so far have demonstrated that you haven't yet grasped the syntactic basics yet but it doesn't seem to bother you. Yes, here we go again! I am just seeking valid knowledge and understanding. Reading material is great too as long as it is relevant. The use of BCC with the PHP mail function is pretty well-explained on the PHP manual page for said function. Sarcasm does not help with the learning curve sir! You will find that if you read my reply carefully the answers you seek are in there. I rarely answer a question with sarcasm alone, but I'm a little ashamed to say that it does happen occasionally. I hang about on this list for entertainment. I get that from helping people and mocking those I think deserve it. If you don't like it feel free to ignore me or add me to your kill list, but don't ask me to stop. -Stut -- http://stut.net/ -Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 3:43 PM To: Brad Cc: php-general@lists.php.net Subject: Re: [PHP] two small issues with php mail Brad wrote: Implementing Bcc and smtp. Here we go again #1 email is only being sent to a few recipients. I need to implement $smtp = ‘localhost’; Somewhere, but I keep getting parse errors? Those are not normal quotes, but I'm guessing you actually typed that in the evil that is Outlook. #2 trying to do a Bcc but that gives me parse errors as well It should be as easy as? $Bcc [EMAIL PROTECTED]; $eol = \r\n; That's not valid code. Ok, the second bit is, but still rather pointless. Here is the working code, but if I implement the above needed inserts anywhere, I get a big ‘ol fat parse error Any assistance would be truly appreciated. An explanation of why would really help since this is for a school project. Ahh, suddenly everything becomes clear. You can't use PHPMailer because that would mean that you didn't learn it yourself you just used somebody elses work. So instead you ask here rather than reading the PHPMailer source code. Nice. Working code as is: ? $email = $_REQUEST['email']; $fromaddress = '[EMAIL PROTECTED]'; $fromname = 'Zone of success Club'; $eol = \r\n; $headers = 'From: '.$fromname.' '.$fromaddress.''.$eol; // $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. $headers .= 'Reply-To: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'Return-Path: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'X-Mailer: PHP '.phpversion().$eol; $headers .= 'Content-Type: text/html; charset=iso-8859-1'.$eol; $headers .= 'Content-Transfer-Encoding: 8bit'; $subject = 'Your free book!'; $body = 'a href=http://www.zoneofsuccessclub.com/freePDF/autopilotebook.pdf;Click ME/a Here is your FREE autopilot book'; Click ME indeed. I'm guessing this isn't an HCI course you're doing. mail($email, $subject, $body, $headers); ? Try the veal. -Stut 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
RE: [PHP] two small issues with php mail
Since it is not in the assignment, find out how to do things within the parameters of your assignment. http://www.google.com php: {issue} Googling PHP: mail bcc (sans quotes) has 5 viable workings on how to do it. If it fails, then you need to be examing the php.ini file for information or talking with the server admins as to what piece is wrong. Also, if you are error checking your own stuff, then the error log should be able to tell you what has failed out. I'm glad your professor is teaching you how to learn, but shouldn't this be something you should be able to do already? And wasn't this whole thing started with you looking for something that you were already too much money into to change for the next roll-out? So now you are fessing up to trying to get the PHP board to do your assignments for you? I sure hope your instructor is on this board too... Wolf Brad [EMAIL PROTECTED] wrote: PHP mailer is not in the assignment and will be counted against me! -Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 3:43 PM To: Brad Cc: php-general@lists.php.net Subject: Re: [PHP] two small issues with php mail Brad wrote: Implementing Bcc and smtp. Here we go again #1 email is only being sent to a few recipients. I need to implement $smtp = ‘localhost’; Somewhere, but I keep getting parse errors? Those are not normal quotes, but I'm guessing you actually typed that in the evil that is Outlook. #2 trying to do a Bcc but that gives me parse errors as well It should be as easy as? $Bcc [EMAIL PROTECTED]; $eol = \r\n; That's not valid code. Ok, the second bit is, but still rather pointless. Here is the working code, but if I implement the above needed inserts anywhere, I get a big ‘ol fat parse error Any assistance would be truly appreciated. An explanation of why would really help since this is for a school project. Ahh, suddenly everything becomes clear. You can't use PHPMailer because that would mean that you didn't learn it yourself you just used somebody elses work. So instead you ask here rather than reading the PHPMailer source code. Nice. Working code as is: ? $email = $_REQUEST['email']; $fromaddress = '[EMAIL PROTECTED]'; $fromname = 'Zone of success Club'; $eol = \r\n; $headers = 'From: '.$fromname.' '.$fromaddress.''.$eol; // $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. $headers .= 'Reply-To: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'Return-Path: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'X-Mailer: PHP '.phpversion().$eol; $headers .= 'Content-Type: text/html; charset=iso-8859-1'.$eol; $headers .= 'Content-Transfer-Encoding: 8bit'; $subject = 'Your free book!'; $body = 'a href=http://www.zoneofsuccessclub.com/freePDF/autopilotebook.pdf;Click ME/a Here is your FREE autopilot book'; Click ME indeed. I'm guessing this isn't an HCI course you're doing. mail($email, $subject, $body, $headers); ? Try the veal. -Stut -- http://stut.net/ -- 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
Re: [PHP] two small issues with php mail
Brad wrote: This is why I am on this mailing instead of the php site for their mailer which is utterly useless! I could probably recite the entire page by heart and gained nothing compared to the insight and reading material offered by this list. Just seeking knowledgeable guidance! Any assistance on methods to solve my issue would be duly appreciated! Once again... my reply contained everything you needed to get your code to work properly. Please read it again. -Stut -- http://stut.net/ -Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 4:17 PM To: Brad Cc: php-general@lists.php.net Subject: Re: [PHP] two small issues with php mail Brad wrote: This information is pulled directly off the php website when used for other applications, so if I am wrong, then so are they. As for php mailer, my professor explained it very well today, Learn the in's and out's of the programming and it's quarks to understand the logic and then he will show us the tricks. I wouldn't call PHPMailer a trick as such, but your professor is absolutely right about learning the in's and out's of programming. Unfortunately your posts so far have demonstrated that you haven't yet grasped the syntactic basics yet but it doesn't seem to bother you. Yes, here we go again! I am just seeking valid knowledge and understanding. Reading material is great too as long as it is relevant. The use of BCC with the PHP mail function is pretty well-explained on the PHP manual page for said function. Sarcasm does not help with the learning curve sir! You will find that if you read my reply carefully the answers you seek are in there. I rarely answer a question with sarcasm alone, but I'm a little ashamed to say that it does happen occasionally. I hang about on this list for entertainment. I get that from helping people and mocking those I think deserve it. If you don't like it feel free to ignore me or add me to your kill list, but don't ask me to stop. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] two small issues with php mail
Guidance: 1. Learn the syntax of PHP, including how to concatenate information to variables. 2. Learn the syntax of coding standards for the language you are using. 3. Learn the proper way to ask for help 4. Learn the proper way to read answers provided, since this is difficult for you... A. Remove head from @$$ B. Read email top to bottom (printing it out sometimes helps) C. Mark through the bits of working code that you provided D. Re-Read non-working code with helpful tips from those whom have given you answers E. THANK THE ANSWERERS FOR THEIR HELP F. Fully document your code with the markings where you received further insight or code pieces themselves to show where you got it If you don't like sarcasm or want people to do your homework for you, go to another list. Many of us on here code daily, using pieces of our own and helping others and each other out (OK, I can't EVER remember helping Stut with something), but we are here because we like to help and pass on information. We are NOT here to write code for your business or homework. You should be learning these principals in your class, you must have been skipping or asleep during them. And yes, Stut's answers are great for the issue at hand, but you need to go back and follow the steps (possibly making sure to step A multiple times)... And I'd love to hear you recite the entire page. What's your number and I'll speaker-phone it. :-D Wolf Brad [EMAIL PROTECTED] wrote: This is why I am on this mailing instead of the php site for their mailer which is utterly useless! I could probably recite the entire page by heart and gained nothing compared to the insight and reading material offered by this list. Just seeking knowledgeable guidance! Any assistance on methods to solve my issue would be duly appreciated! -Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 4:17 PM To: Brad Cc: php-general@lists.php.net Subject: Re: [PHP] two small issues with php mail Brad wrote: This information is pulled directly off the php website when used for other applications, so if I am wrong, then so are they. As for php mailer, my professor explained it very well today, Learn the in's and out's of the programming and it's quarks to understand the logic and then he will show us the tricks. I wouldn't call PHPMailer a trick as such, but your professor is absolutely right about learning the in's and out's of programming. Unfortunately your posts so far have demonstrated that you haven't yet grasped the syntactic basics yet but it doesn't seem to bother you. Yes, here we go again! I am just seeking valid knowledge and understanding. Reading material is great too as long as it is relevant. The use of BCC with the PHP mail function is pretty well-explained on the PHP manual page for said function. Sarcasm does not help with the learning curve sir! You will find that if you read my reply carefully the answers you seek are in there. I rarely answer a question with sarcasm alone, but I'm a little ashamed to say that it does happen occasionally. I hang about on this list for entertainment. I get that from helping people and mocking those I think deserve it. If you don't like it feel free to ignore me or add me to your kill list, but don't ask me to stop. -Stut -- http://stut.net/ -Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 3:43 PM To: Brad Cc: php-general@lists.php.net Subject: Re: [PHP] two small issues with php mail Brad wrote: Implementing Bcc and smtp. Here we go again #1 email is only being sent to a few recipients. I need to implement $smtp = ‘localhost’; Somewhere, but I keep getting parse errors? Those are not normal quotes, but I'm guessing you actually typed that in the evil that is Outlook. #2 trying to do a Bcc but that gives me parse errors as well It should be as easy as? $Bcc [EMAIL PROTECTED]; $eol = \r\n; That's not valid code. Ok, the second bit is, but still rather pointless. Here is the working code, but if I implement the above needed inserts anywhere, I get a big ‘ol fat parse error Any assistance would be truly appreciated. An explanation of why would really help since this is for a school project. Ahh, suddenly everything becomes clear. You can't use PHPMailer because that would mean that you didn't learn it yourself you just used somebody elses work. So instead you ask here rather than reading the PHPMailer source code. Nice. Working code as is: ? $email = $_REQUEST['email']; $fromaddress = '[EMAIL PROTECTED]'; $fromname = 'Zone of success Club'; $eol = \r\n; $headers = 'From: '.$fromname.' '.$fromaddress.''.$eol; // $headers = 'bcc: '[EMAIL PROTECTED]'; This should work. However
RE: [PHP] two small issues with php mail
Well, since http://forums.hostmysite.com/about1171.html states $headers .= CC: [EMAIL PROTECTED]; Which does not work for me AT ALL and Stut called me a [EMAIL PROTECTED] for doing it, I am assuming that all this key wording on google is not going to and the problem appears to be else where! -Original Message- From: Wolf [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 4:39 PM To: Brad Cc: php-general@lists.php.net; 'Stut' Subject: RE: [PHP] two small issues with php mail Since it is not in the assignment, find out how to do things within the parameters of your assignment. http://www.google.com php: {issue} Googling PHP: mail bcc (sans quotes) has 5 viable workings on how to do it. If it fails, then you need to be examing the php.ini file for information or talking with the server admins as to what piece is wrong. Also, if you are error checking your own stuff, then the error log should be able to tell you what has failed out. I'm glad your professor is teaching you how to learn, but shouldn't this be something you should be able to do already? And wasn't this whole thing started with you looking for something that you were already too much money into to change for the next roll-out? So now you are fessing up to trying to get the PHP board to do your assignments for you? I sure hope your instructor is on this board too... Wolf Brad [EMAIL PROTECTED] wrote: PHP mailer is not in the assignment and will be counted against me! -Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 3:43 PM To: Brad Cc: php-general@lists.php.net Subject: Re: [PHP] two small issues with php mail Brad wrote: Implementing Bcc and smtp. Here we go again #1 email is only being sent to a few recipients. I need to implement $smtp = ‘localhost’; Somewhere, but I keep getting parse errors? Those are not normal quotes, but I'm guessing you actually typed that in the evil that is Outlook. #2 trying to do a Bcc but that gives me parse errors as well It should be as easy as? $Bcc [EMAIL PROTECTED]; $eol = \r\n; That's not valid code. Ok, the second bit is, but still rather pointless. Here is the working code, but if I implement the above needed inserts anywhere, I get a big ‘ol fat parse error Any assistance would be truly appreciated. An explanation of why would really help since this is for a school project. Ahh, suddenly everything becomes clear. You can't use PHPMailer because that would mean that you didn't learn it yourself you just used somebody elses work. So instead you ask here rather than reading the PHPMailer source code. Nice. Working code as is: ? $email = $_REQUEST['email']; $fromaddress = '[EMAIL PROTECTED]'; $fromname = 'Zone of success Club'; $eol = \r\n; $headers = 'From: '.$fromname.' '.$fromaddress.''.$eol; // $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. $headers .= 'Reply-To: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'Return-Path: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'X-Mailer: PHP '.phpversion().$eol; $headers .= 'Content-Type: text/html; charset=iso-8859-1'.$eol; $headers .= 'Content-Transfer-Encoding: 8bit'; $subject = 'Your free book!'; $body = 'a href=http://www.zoneofsuccessclub.com/freePDF/autopilotebook.pdf;Click ME/a Here is your FREE autopilot book'; Click ME indeed. I'm guessing this isn't an HCI course you're doing. mail($email, $subject, $body, $headers); ? Try the veal. -Stut -- http://stut.net/ -- 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 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
RE: [PHP] two small issues with php mail
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. The php manual page goes from baby basics to crazy smtp authentication processes with a snippet of my issue which when extracted does not work. When add lib is added, it does not work, when the entire code piece is extracted, it does not work, when attempted to clean it up and cater to my environment, it parse errors. How about a relational examination or how they got from point a to point d? -Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 4:41 PM To: Brad Cc: php-general@lists.php.net Subject: Re: [PHP] two small issues with php mail Brad wrote: This is why I am on this mailing instead of the php site for their mailer which is utterly useless! I could probably recite the entire page by heart and gained nothing compared to the insight and reading material offered by this list. Just seeking knowledgeable guidance! Any assistance on methods to solve my issue would be duly appreciated! Once again... my reply contained everything you needed to get your code to work properly. Please read it again. -Stut -- http://stut.net/ -Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 4:17 PM To: Brad Cc: php-general@lists.php.net Subject: Re: [PHP] two small issues with php mail Brad wrote: This information is pulled directly off the php website when used for other applications, so if I am wrong, then so are they. As for php mailer, my professor explained it very well today, Learn the in's and out's of the programming and it's quarks to understand the logic and then he will show us the tricks. I wouldn't call PHPMailer a trick as such, but your professor is absolutely right about learning the in's and out's of programming. Unfortunately your posts so far have demonstrated that you haven't yet grasped the syntactic basics yet but it doesn't seem to bother you. Yes, here we go again! I am just seeking valid knowledge and understanding. Reading material is great too as long as it is relevant. The use of BCC with the PHP mail function is pretty well-explained on the PHP manual page for said function. Sarcasm does not help with the learning curve sir! You will find that if you read my reply carefully the answers you seek are in there. I rarely answer a question with sarcasm alone, but I'm a little ashamed to say that it does happen occasionally. I hang about on this list for entertainment. I get that from helping people and mocking those I think deserve it. If you don't like it feel free to ignore me or add me to your kill list, but don't ask me to stop. -Stut -- 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
RE: [PHP] two small issues with php mail
1. Always copy the list back 2. HERE is the right word you want, since you can't HEAR someone's on email or when reading the system files. Maybe you should take English Grammar 101 for your next course. 3. Who says you need access to the server backend... Google phpinfo() - very basic, ALL books say to make this page when verifying PHP is installed correctly. I didn't assume anything, merely followed the threads. And since from the looks of things the thread has not changed, the back-story has... Well draw your own conclusions there. Wolf Brad [EMAIL PROTECTED] wrote: Wolf write! ### Since it is not in the assignment, find out how to do things within the parameters of your assignment. http://www.google.com php: {issue} Googling PHP: mail bcc (sans quotes) has 5 viable workings on how to do it. If it fails, then you need to be examing the php.ini file for information or talking with the server admins as to what piece is wrong. ## Me No access to the server backend! # Also, if you are error checking your own stuff, then the error log should be able to tell you what has failed out. ### Me Doing it, but since these are situational and specific to my problem alone, I am batting zero and now on the list! I'm glad your professor is teaching you how to learn, but shouldn't this be something you should be able to do already? And wasn't this whole thing started with you looking for something that you were already too much money into to change for the next roll-out? So now you are fessing up to trying to get the PHP board to do your assignments for you? ### Me You are assuming hear and one guarantee about assumptions is that they are 99% incorrect. ## I sure hope your instructor is on this board too... Wolf !-- Snipped for brevity -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] two small issues with php mail
I am very much aware of phpinfo() Which has nothing to do with being able to edit the php.ini file! -Original Message- From: Wolf [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 4:59 PM To: Brad; php-general Subject: RE: [PHP] two small issues with php mail 1. Always copy the list back 2. HERE is the right word you want, since you can't HEAR someone's on email or when reading the system files. Maybe you should take English Grammar 101 for your next course. 3. Who says you need access to the server backend... Google phpinfo() - very basic, ALL books say to make this page when verifying PHP is installed correctly. I didn't assume anything, merely followed the threads. And since from the looks of things the thread has not changed, the back-story has... Well draw your own conclusions there. Wolf Brad [EMAIL PROTECTED] wrote: Wolf write! ### Since it is not in the assignment, find out how to do things within the parameters of your assignment. http://www.google.com php: {issue} Googling PHP: mail bcc (sans quotes) has 5 viable workings on how to do it. If it fails, then you need to be examing the php.ini file for information or talking with the server admins as to what piece is wrong. ## Me No access to the server backend! # Also, if you are error checking your own stuff, then the error log should be able to tell you what has failed out. ### Me Doing it, but since these are situational and specific to my problem alone, I am batting zero and now on the list! I'm glad your professor is teaching you how to learn, but shouldn't this be something you should be able to do already? And wasn't this whole thing started with you looking for something that you were already too much money into to change for the next roll-out? So now you are fessing up to trying to get the PHP board to do your assignments for you? ### Me You are assuming hear and one guarantee about assumptions is that they are 99% incorrect. ## I sure hope your instructor is on this board too... Wolf !-- Snipped for brevity -- -- 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
RE: [PHP] two small issues with php mail
I didn't say TO edit the php.ini file, but it will tell you what the setup of said server is, including compiled in pieces and smtp settings. Are you aware of .htaccess files? google override php.ini using .htaccess and you should get some good hits there. But then that is probably outside the scope of your assignment. However some professors see that as insightful, YMMV. Wolf Brad [EMAIL PROTECTED] wrote: I am very much aware of phpinfo() Which has nothing to do with being able to edit the php.ini file! -Original Message- From: Wolf [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 4:59 PM To: Brad; php-general Subject: RE: [PHP] two small issues with php mail 1. Always copy the list back 2. HERE is the right word you want, since you can't HEAR someone's on email or when reading the system files. Maybe you should take English Grammar 101 for your next course. 3. Who says you need access to the server backend... Google phpinfo() - very basic, ALL books say to make this page when verifying PHP is installed correctly. I didn't assume anything, merely followed the threads. And since from the looks of things the thread has not changed, the back-story has... Well draw your own conclusions there. Wolf Brad [EMAIL PROTECTED] wrote: Wolf write! ### Since it is not in the assignment, find out how to do things within the parameters of your assignment. http://www.google.com php: {issue} Googling PHP: mail bcc (sans quotes) has 5 viable workings on how to do it. If it fails, then you need to be examing the php.ini file for information or talking with the server admins as to what piece is wrong. ## Me No access to the server backend! # Also, if you are error checking your own stuff, then the error log should be able to tell you what has failed out. ### Me Doing it, but since these are situational and specific to my problem alone, I am batting zero and now on the list! I'm glad your professor is teaching you how to learn, but shouldn't this be something you should be able to do already? And wasn't this whole thing started with you looking for something that you were already too much money into to change for the next roll-out? So now you are fessing up to trying to get the PHP board to do your assignments for you? ### Me You are assuming hear and one guarantee about assumptions is that they are 99% incorrect. ## I sure hope your instructor is on this board too... Wolf !-- Snipped for brevity -- -- 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
RE: [PHP] two small issues with php mail
[CPANEL] active _ENV[USER] root _ENV[LD_LIBRARY_PATH] /usr/local/apache/lib: _ENV[PATH] /bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/local/sbin _ENV[PWD] / _ENV[WHM50] 10.8.0 _ENV[SHLVL] 1 _ENV[HOME] /root _ENV[RESTARTSRV] 1 _ENV[_] /usr/local/apache/bin/httpd -Original Message- From: Wolf [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 5:15 PM To: Brad Cc: php-general@lists.php.net Subject: RE: [PHP] two small issues with php mail I didn't say TO edit the php.ini file, but it will tell you what the setup of said server is, including compiled in pieces and smtp settings. Are you aware of .htaccess files? google override php.ini using .htaccess and you should get some good hits there. But then that is probably outside the scope of your assignment. However some professors see that as insightful, YMMV. Wolf Brad [EMAIL PROTECTED] wrote: I am very much aware of phpinfo() Which has nothing to do with being able to edit the php.ini file! -Original Message- From: Wolf [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 4:59 PM To: Brad; php-general Subject: RE: [PHP] two small issues with php mail 1. Always copy the list back 2. HERE is the right word you want, since you can't HEAR someone's on email or when reading the system files. Maybe you should take English Grammar 101 for your next course. 3. Who says you need access to the server backend... Google phpinfo() - very basic, ALL books say to make this page when verifying PHP is installed correctly. I didn't assume anything, merely followed the threads. And since from the looks of things the thread has not changed, the back-story has... Well draw your own conclusions there. Wolf Brad [EMAIL PROTECTED] wrote: Wolf write! ### Since it is not in the assignment, find out how to do things within the parameters of your assignment. http://www.google.com php: {issue} Googling PHP: mail bcc (sans quotes) has 5 viable workings on how to do it. If it fails, then you need to be examing the php.ini file for information or talking with the server admins as to what piece is wrong. ## Me No access to the server backend! # Also, if you are error checking your own stuff, then the error log should be able to tell you what has failed out. ### Me Doing it, but since these are situational and specific to my problem alone, I am batting zero and now on the list! I'm glad your professor is teaching you how to learn, but shouldn't this be something you should be able to do already? And wasn't this whole thing started with you looking for something that you were already too much money into to change for the next roll-out? So now you are fessing up to trying to get the PHP board to do your assignments for you? ### Me You are assuming hear and one guarantee about assumptions is that they are 99% incorrect. ## I sure hope your instructor is on this board too... Wolf !-- Snipped for brevity -- -- 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 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
Re: [PHP] two small issues with php mail
Brad wrote: Well, since http://forums.hostmysite.com/about1171.html states $headers .= CC: [EMAIL PROTECTED]; Which does not work for me AT ALL and Stut called me a [EMAIL PROTECTED] for doing it, I am assuming that all this key wording on google is not going to and the problem appears to be else where! I don't believe I did that at all (if I did can someone else please let me know - it's never my intention). Since you don't seem willing to properly read my original reply to you, the one with the answer in it, I give up. I wish your professor luck. -Stut -- http://stut.net/ -Original Message- From: Wolf [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 4:39 PM To: Brad Cc: php-general@lists.php.net; 'Stut' Subject: RE: [PHP] two small issues with php mail Since it is not in the assignment, find out how to do things within the parameters of your assignment. http://www.google.com php: {issue} Googling PHP: mail bcc (sans quotes) has 5 viable workings on how to do it. If it fails, then you need to be examing the php.ini file for information or talking with the server admins as to what piece is wrong. Also, if you are error checking your own stuff, then the error log should be able to tell you what has failed out. I'm glad your professor is teaching you how to learn, but shouldn't this be something you should be able to do already? And wasn't this whole thing started with you looking for something that you were already too much money into to change for the next roll-out? So now you are fessing up to trying to get the PHP board to do your assignments for you? I sure hope your instructor is on this board too... Wolf Brad [EMAIL PROTECTED] wrote: PHP mailer is not in the assignment and will be counted against me! -Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 3:43 PM To: Brad Cc: php-general@lists.php.net Subject: Re: [PHP] two small issues with php mail Brad wrote: Implementing Bcc and smtp. Here we go again #1 email is only being sent to a few recipients. I need to implement $smtp = ‘localhost’; Somewhere, but I keep getting parse errors? Those are not normal quotes, but I'm guessing you actually typed that in the evil that is Outlook. #2 trying to do a Bcc but that gives me parse errors as well It should be as easy as? $Bcc [EMAIL PROTECTED]; $eol = \r\n; That's not valid code. Ok, the second bit is, but still rather pointless. Here is the working code, but if I implement the above needed inserts anywhere, I get a big ‘ol fat parse error Any assistance would be truly appreciated. An explanation of why would really help since this is for a school project. Ahh, suddenly everything becomes clear. You can't use PHPMailer because that would mean that you didn't learn it yourself you just used somebody elses work. So instead you ask here rather than reading the PHPMailer source code. Nice. Working code as is: ? $email = $_REQUEST['email']; $fromaddress = '[EMAIL PROTECTED]'; $fromname = 'Zone of success Club'; $eol = \r\n; $headers = 'From: '.$fromname.' '.$fromaddress.''.$eol; // $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. $headers .= 'Reply-To: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'Return-Path: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'X-Mailer: PHP '.phpversion().$eol; $headers .= 'Content-Type: text/html; charset=iso-8859-1'.$eol; $headers .= 'Content-Transfer-Encoding: 8bit'; $subject = 'Your free book!'; $body = 'a href=http://www.zoneofsuccessclub.com/freePDF/autopilotebook.pdf;Click ME/a Here is your FREE autopilot book'; Click ME indeed. I'm guessing this isn't an HCI course you're doing. mail($email, $subject, $body, $headers); ? Try the veal. -Stut -- http://stut.net/ -- 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
RE: [PHP] two small issues with php mail
As per your email! # Brad wrote: $headers = 'bcc: [EMAIL PROTECTED]'; Works but corrupts the from portion and changes it to nobody Which I think goes back too the smtp portion. There is no bcc: header. BCC'ing someone is normally done by sending them the email without listing them explicitly in to: or cc:. /Per Jessen, Zürich -Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 5:18 PM To: Brad Cc: 'Wolf'; php-general@lists.php.net Subject: Re: [PHP] two small issues with php mail Brad wrote: Well, since http://forums.hostmysite.com/about1171.html states $headers .= CC: [EMAIL PROTECTED]; Which does not work for me AT ALL and Stut called me a [EMAIL PROTECTED] for doing it, I am assuming that all this key wording on google is not going to and the problem appears to be else where! I don't believe I did that at all (if I did can someone else please let me know - it's never my intention). Since you don't seem willing to properly read my original reply to you, the one with the answer in it, I give up. I wish your professor luck. -Stut -- http://stut.net/ -Original Message- From: Wolf [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 4:39 PM To: Brad Cc: php-general@lists.php.net; 'Stut' Subject: RE: [PHP] two small issues with php mail Since it is not in the assignment, find out how to do things within the parameters of your assignment. http://www.google.com php: {issue} Googling PHP: mail bcc (sans quotes) has 5 viable workings on how to do it. If it fails, then you need to be examing the php.ini file for information or talking with the server admins as to what piece is wrong. Also, if you are error checking your own stuff, then the error log should be able to tell you what has failed out. I'm glad your professor is teaching you how to learn, but shouldn't this be something you should be able to do already? And wasn't this whole thing started with you looking for something that you were already too much money into to change for the next roll-out? So now you are fessing up to trying to get the PHP board to do your assignments for you? I sure hope your instructor is on this board too... Wolf Brad [EMAIL PROTECTED] wrote: PHP mailer is not in the assignment and will be counted against me! -Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 3:43 PM To: Brad Cc: php-general@lists.php.net Subject: Re: [PHP] two small issues with php mail Brad wrote: Implementing Bcc and smtp. Here we go again #1 email is only being sent to a few recipients. I need to implement $smtp = localhost; Somewhere, but I keep getting parse errors? Those are not normal quotes, but I'm guessing you actually typed that in the evil that is Outlook. #2 trying to do a Bcc but that gives me parse errors as well It should be as easy as? $Bcc [EMAIL PROTECTED]; $eol = \r\n; That's not valid code. Ok, the second bit is, but still rather pointless. Here is the working code, but if I implement the above needed inserts anywhere, I get a big ol fat parse error Any assistance would be truly appreciated. An explanation of why would really help since this is for a school project. Ahh, suddenly everything becomes clear. You can't use PHPMailer because that would mean that you didn't learn it yourself you just used somebody elses work. So instead you ask here rather than reading the PHPMailer source code. Nice. Working code as is: ? $email = $_REQUEST['email']; $fromaddress = '[EMAIL PROTECTED]'; $fromname = 'Zone of success Club'; $eol = \r\n; $headers = 'From: '.$fromname.' '.$fromaddress.''.$eol; // $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. $headers .= 'Reply-To: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'Return-Path: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'X-Mailer: PHP '.phpversion().$eol; $headers .= 'Content-Type: text/html; charset=iso-8859-1'.$eol; $headers .= 'Content-Transfer-Encoding: 8bit'; $subject = 'Your free book!'; $body = 'a href=http://www.zoneofsuccessclub.com/freePDF/autopilotebook.pdf;Click ME/a Here is your FREE autopilot book'; Click ME indeed. I'm guessing this isn't an HCI course you're doing. mail($email, $subject, $body, $headers); ? Try the veal. -Stut -- http://stut.net/ -- 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
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/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] two small issues with php mail
Brad wrote: As per your email! Whose email? Not mine. # Brad wrote: $headers = 'bcc: [EMAIL PROTECTED]'; Works but corrupts the from portion and changes it to nobody Which I think goes back too the smtp portion. There is no bcc: header. BCC'ing someone is normally done by sending them the email without listing them explicitly in to: or cc:. Per: While technically correct, PHP (on Windows) and Sendmail (in the default configuration used by PHP on most systems) will parse an email, extract Bcc headers and use them. There is a note regarding when this was added for Windows on the mail manual page. -Stut -- http://stut.net/ -Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 5:18 PM To: Brad Cc: 'Wolf'; php-general@lists.php.net Subject: Re: [PHP] two small issues with php mail Brad wrote: Well, since http://forums.hostmysite.com/about1171.html states $headers .= CC: [EMAIL PROTECTED]; Which does not work for me AT ALL and Stut called me a [EMAIL PROTECTED] for doing it, I am assuming that all this key wording on google is not going to and the problem appears to be else where! I don't believe I did that at all (if I did can someone else please let me know - it's never my intention). Since you don't seem willing to properly read my original reply to you, the one with the answer in it, I give up. I wish your professor luck. -Stut -Stut -- http://stut.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] two small issues with php mail
Brad, Take 3 steps away from the computer. Now take a few deep breaths. Good. Stut is NOT Jessen, make sure that the person who called you a dumbass is given the proper credit for doing so. Stut has tried to be helpful and if you take the time to read through it (are you on a deadline for having your homework done and partied too hard this weekend?) and you should be able to get your stuff handled. BCC is the only way to send email without putting the recipients in the CC or To field. But do make sure you follow the correct syntax to include them. Wolf Brad [EMAIL PROTECTED] wrote: As per your email! # Brad wrote: $headers = 'bcc: [EMAIL PROTECTED]'; Works but corrupts the from portion and changes it to nobody Which I think goes back too the smtp portion. There is no bcc: header. BCC'ing someone is normally done by sending them the email without listing them explicitly in to: or cc:. /Per Jessen, Zürich -Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 5:18 PM To: Brad Cc: 'Wolf'; php-general@lists.php.net Subject: Re: [PHP] two small issues with php mail Brad wrote: Well, since http://forums.hostmysite.com/about1171.html states $headers .= CC: [EMAIL PROTECTED]; Which does not work for me AT ALL and Stut called me a [EMAIL PROTECTED] for doing it, I am assuming that all this key wording on google is not going to and the problem appears to be else where! I don't believe I did that at all (if I did can someone else please let me know - it's never my intention). Since you don't seem willing to properly read my original reply to you, the one with the answer in it, I give up. I wish your professor luck. -Stut -- http://stut.net/ -Original Message- From: Wolf [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 4:39 PM To: Brad Cc: php-general@lists.php.net; 'Stut' Subject: RE: [PHP] two small issues with php mail Since it is not in the assignment, find out how to do things within the parameters of your assignment. http://www.google.com php: {issue} Googling PHP: mail bcc (sans quotes) has 5 viable workings on how to do it. If it fails, then you need to be examing the php.ini file for information or talking with the server admins as to what piece is wrong. Also, if you are error checking your own stuff, then the error log should be able to tell you what has failed out. I'm glad your professor is teaching you how to learn, but shouldn't this be something you should be able to do already? And wasn't this whole thing started with you looking for something that you were already too much money into to change for the next roll-out? So now you are fessing up to trying to get the PHP board to do your assignments for you? I sure hope your instructor is on this board too... Wolf Brad [EMAIL PROTECTED] wrote: PHP mailer is not in the assignment and will be counted against me! -Original Message- From: Stut [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 3:43 PM To: Brad Cc: php-general@lists.php.net Subject: Re: [PHP] two small issues with php mail Brad wrote: Implementing Bcc and smtp. Here we go again #1 email is only being sent to a few recipients. I need to implement $smtp = localhost; Somewhere, but I keep getting parse errors? Those are not normal quotes, but I'm guessing you actually typed that in the evil that is Outlook. #2 trying to do a Bcc but that gives me parse errors as well It should be as easy as? $Bcc [EMAIL PROTECTED]; $eol = \r\n; That's not valid code. Ok, the second bit is, but still rather pointless. Here is the working code, but if I implement the above needed inserts anywhere, I get a big ol fat parse error Any assistance would be truly appreciated. An explanation of why would really help since this is for a school project. Ahh, suddenly everything becomes clear. You can't use PHPMailer because that would mean that you didn't learn it yourself you just used somebody elses work. So instead you ask here rather than reading the PHPMailer source code. Nice. Working code as is: ? $email = $_REQUEST['email']; $fromaddress = '[EMAIL PROTECTED]'; $fromname = 'Zone of success Club'; $eol = \r\n; $headers = 'From: '.$fromname.' '.$fromaddress.''.$eol; // $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. $headers .= 'Reply-To: '.$fromname.' '.$fromaddress.''.$eol
RE: [PHP] two small issues with php mail
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
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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] two small issues with php mail
#1 email is only being sent to a few recipients. I need to implement $smtp = ‘localhost’; Somewhere, but I keep getting parse errors? Don't use fancy ms-word quotes, use the normal single quotes. php mail() only uses the smtp config if you are sending on a windows machine. http://php.net/mail SMTP - Used under Windows only: host name or IP address of the SMTP server PHP should use for mail sent with the mail() function. If you want to do smtp authentication yourself, I suggest you get phpmailer and look at how it handles it (read the code and try to understand the process). $headers = 'From: '.$fromname.' '.$fromaddress.''.$eol; // $headers = 'bcc: '[EMAIL PROTECTED]'; This should be: $headers .= 'bcc: [EMAIL PROTECTED]'; otherwise this line is overwriting the 'from' line (notice the . before the = sign). In future don't post real email addresses because spam-bots get the archives from websites and use them, so kathyandrews is going to get a ton of spam because you've sent her email address around. -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] two small issues with php mail
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
Re: [PHP] two small issues with php mail
On Nov 19, 2007 5:52 PM, 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?) I will refrain from the rest of the posts/slams and stick to your question in the (...). From and Bcc are *BOTH* part of the headers - that's why you want to concatenate them. By not using the . (dot), you are over-writing the From line. Bad/Pointless assignment: $headers = From: ...; $headers = Bcc: ...; Good/Useful assignment: $headers = From: ...; $headers .= Bcc: ...; Good luck. ~Philip
RE: [PHP] two small issues with php mail
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
Re: [PHP] two small issues with php mail
On 11/19/07, Philip Thompson [EMAIL PROTECTED] wrote: On Nov 19, 2007 5:52 PM, 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?) I will refrain from the rest of the posts/slams and stick to your question in the (...). From and Bcc are *BOTH* part of the headers - that's why you want to concatenate them. By not using the . (dot), you are over-writing the From line. Bad/Pointless assignment: $headers = From: ...; $headers = Bcc: ...; Good/Useful assignment: $headers = From: ...; $headers .= Bcc: ...; Good luck. ~Philip Brad, If Philip's suggestion doesn't fix the problem, please post the relevant code, again. I've lost track of your original question. David
RE: [PHP] two small issues with php mail
Thank you so much! That really helps and makes sense! Thank you. I will try that now Concatenate with the dot will not cancel them out! Now this makes sense! And clears up some other questions I had!. Thank you. -Original Message- From: Philip Thompson [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 7:00 PM To: php-general@lists.php.net Subject: Re: [PHP] two small issues with php mail On Nov 19, 2007 5:52 PM, 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?) I will refrain from the rest of the posts/slams and stick to your question in the (...). From and Bcc are *BOTH* part of the headers - that's why you want to concatenate them. By not using the . (dot), you are over-writing the From line. Bad/Pointless assignment: $headers = From: ...; $headers = Bcc: ...; Good/Useful assignment: $headers = From: ...; $headers .= Bcc: ...; Good luck. ~Philip 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
RE: [PHP] two small issues with php mail
It makes sense, but the Bcc is still not making it through. Not sure if the smtp portion is correct either. No parse errors, but no email from the bcc either. ? $email = $_REQUEST['email']; $fromaddress = '[EMAIL PROTECTED]'; $fromname = 'Zone of success Club'; $eol = \r\n; $smtp = localhost; $headers = 'From: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'Bcc: [EMAIL PROTECTED]'; $eol = \r\n; $headers .= 'Reply-To: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'Return-Path: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'X-Mailer: PHP '.phpversion().$eol; $headers .= 'Content-Type: text/html; charset=iso-8859-1'.$eol; $headers .= 'Content-Transfer-Encoding: 8bit'; $subject = 'Your free book!'; $body = 'a href=http://www.g.com/freePDF/autopilotebook.pdf;Click ME/a Here is your FREE autopilot book'; mail($email, $subject, $body, $headers); ? -Original Message- From: Philip Thompson [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 7:00 PM To: php-general@lists.php.net Subject: Re: [PHP] two small issues with php mail On Nov 19, 2007 5:52 PM, 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?) I will refrain from the rest of the posts/slams and stick to your question in the (...). From and Bcc are *BOTH* part of the headers - that's why you want to concatenate them. By not using the . (dot), you are over-writing the From line. Bad/Pointless assignment: $headers = From: ...; $headers = Bcc: ...; Good/Useful assignment: $headers = From: ...; $headers .= Bcc: ...; Good luck. ~Philip 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
RE: [PHP] two small issues with php mail
This is a new trick for me, can you kindly explain? I know what you are getting at, I am just not real sure on th method? Do I just replace mail and the end with print? Aka mail($email, $subject, $body, $headers); with print($email, $subject, $body, $headers); ?? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 8:44 PM To: Brad Subject: RE: [PHP] two small issues with php mail well, you need to do some basic debugging. a) replace your mail() function with print statements and review the output to make certain that it is correct. [this will require that you look at appropriate documentation to see how message headers/body should be formatted.] b) if a) looks right, then look at your mail server's logs to see what shows up there. - Rick Original Message Date: Monday, November 19, 2007 08:19:49 PM -0500 From: Brad [EMAIL PROTECTED] To: 'Philip Thompson' [EMAIL PROTECTED] Cc: php-general@lists.php.net Subject: RE: [PHP] two small issues with php mail It makes sense, but the Bcc is still not making it through. Not sure if the smtp portion is correct either. No parse errors, but no email from the bcc either. ? $email = $_REQUEST['email']; $fromaddress = '[EMAIL PROTECTED]'; $fromname = 'Zone of success Club'; $eol = \r\n; $smtp = localhost; $headers = 'From: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'Bcc: [EMAIL PROTECTED]'; $eol = \r\n; $headers .= 'Reply-To: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'Return-Path: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'X-Mailer: PHP '.phpversion().$eol; $headers .= 'Content-Type: text/html; charset=iso-8859-1'.$eol; $headers .= 'Content-Transfer-Encoding: 8bit'; $subject = 'Your free book!'; $body = 'a href=http://www.g.com/freePDF/autopilotebook.pdf;Cli ck ME/a Here is your FREE autopilot book'; mail($email, $subject, $body, $headers); ? -Original Message- From: Philip Thompson [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 7:00 PM To: php-general@lists.php.net Subject: Re: [PHP] two small issues with php mail On Nov 19, 2007 5:52 PM, 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?) I will refrain from the rest of the posts/slams and stick to your question in the (...). From and Bcc are *BOTH* part of the headers - that's why you want to concatenate them. By not using the . (dot), you are over-writing the From line. Bad/Pointless assignment: $headers = From: ...; $headers = Bcc: ...; Good/Useful assignment: $headers = From: ...; $headers .= Bcc: ...; Good luck. ~Philip -- End Original Message -- 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
RE: [PHP] two small issues with php mail
Did I miss something or the following line in your code is useless? $smtp = localhost; Brad, if you really need SMTP configuration, and you want to make your life easier with attachments and extra headers, give a chance to PHPMailer http://phpmailer.codeworxtech.com/. It's free, easy to set up and use, and can do much more than you need. Rob Andrés Robinet | Lead Developer | BESTPLACE CORPORATION 5100 Bayview Drive 206, Royal Lauderdale Landings, Fort Lauderdale, FL 33308 | TEL 954-607-4207 | FAX 954-337-2695 | Email: [EMAIL PROTECTED] | MSN Chat: [EMAIL PROTECTED] | SKYPE: bestplace | Web: bestplace.biz | Web: seo-diy.com Confidentiality: All information in this email message, including images, attachments, contains confidential and proprietary information of BESTPLACE CORPORATION and should only be used or serves for the intended purpose and should not be copied, used or disclosed to anyone other than the sole recipient of this e-mail message. -Original Message- From: Brad [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 10:27 PM To: php-general@lists.php.net Subject: FW: [PHP] two small issues with php mail _ From: Brad [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 8:26 PM To: 'David Giragosian' Subject: RE: [PHP] two small issues with php mail My original issue is trying to implement a Bcc and Emails are only making it to 50% of the recipients. Research and past experience says that I need to implement smtp into my code. Testing of the present parse free code show that email addresses on the same server: To: works Bcc: does not Once Bcc: works on same server, I will need to test Bcc on another server which I am sure requires the proper smtp configuration. Working code: ? $email = $_REQUEST['email']; $fromaddress = '[EMAIL PROTECTED]'; $fromname = g'; $eol = \r\n; $smtp = localhost; $headers = 'From: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'Bcc: [EMAIL PROTECTED]'; $eol = \r\n; $headers .= 'Reply-To: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'Return-Path: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'X-Mailer: PHP '.phpversion().$eol; $headers .= 'Content-Type: text/html; charset=iso-8859-1'.$eol; $headers .= 'Content-Transfer-Encoding: 8bit'; $subject = 'Your free book!'; $body = 'a href=http://www..com/freePDF/autopilotebook.pdf;Clic k ME/a Here is your FREE autopilot book'; mail($email, $subject, $body, $headers); ? _ From: David Giragosian [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 7:25 PM To: Brad Cc: php-general@lists.php.net Subject: Re: [PHP] two small issues with php mail On 11/19/07, Philip Thompson HYPERLINK mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote: On Nov 19, 2007 5:52 PM, Brad HYPERLINK mailto:[EMAIL PROTECTED][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?) I will refrain from the rest of the posts/slams and stick to your question in the (...). From and Bcc are *BOTH* part of the headers - that's why you want to concatenate them. By not using the . (dot), you are over-writing the From line. Bad/Pointless assignment: $headers = From: ...; $headers = Bcc: ...; Good/Useful assignment: $headers = From: ...; $headers .= Bcc: ...; Good luck. ~Philip Brad, If Philip's suggestion doesn't fix the problem, please post the relevant code, again. I've lost track of your original question. David 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 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
Re: [PHP] two small issues with php mail
Brad wrote: It makes sense, but the Bcc is still not making it through. Try the examples here: http://www.sitepoint.com/article/advanced-email-php They also point out there could be a bug in php mail() where bcc needs to be all caps or all lower. Not sure if the smtp portion is correct either. I've already explained that. http://marc.info/?l=php-generalm=119551514923527w=2 -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] two small issues with php mail
For the purposes of this task, mailer is not an option. This is a class assignment to put us into the weeds. I am neck deep googling the heck out of this and finding snippets of un-related code which do not fit. Just seek help from a knowledgeable community to help me past the learning curve. And getting hit hard from hecklers in the process. I am not having a good day with php! I took this class because of it's Linux and Unix origin... I am not having a good day! -Original Message- From: Andrés Robinet [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 8:49 PM To: 'Brad' Cc: php-general@lists.php.net Subject: RE: [PHP] two small issues with php mail Did I miss something or the following line in your code is useless? $smtp = localhost; Brad, if you really need SMTP configuration, and you want to make your life easier with attachments and extra headers, give a chance to PHPMailer http://phpmailer.codeworxtech.com/. It's free, easy to set up and use, and can do much more than you need. Rob Andrés Robinet | Lead Developer | BESTPLACE CORPORATION 5100 Bayview Drive 206, Royal Lauderdale Landings, Fort Lauderdale, FL 33308 | TEL 954-607-4207 | FAX 954-337-2695 | Email: [EMAIL PROTECTED] | MSN Chat: [EMAIL PROTECTED] | SKYPE: bestplace | Web: bestplace.biz | Web: seo-diy.com Confidentiality: All information in this email message, including images, attachments, contains confidential and proprietary information of BESTPLACE CORPORATION and should only be used or serves for the intended purpose and should not be copied, used or disclosed to anyone other than the sole recipient of this e-mail message. -Original Message- From: Brad [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 10:27 PM To: php-general@lists.php.net Subject: FW: [PHP] two small issues with php mail _ From: Brad [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 8:26 PM To: 'David Giragosian' Subject: RE: [PHP] two small issues with php mail My original issue is trying to implement a Bcc and Emails are only making it to 50% of the recipients. Research and past experience says that I need to implement smtp into my code. Testing of the present parse free code show that email addresses on the same server: To: works Bcc: does not Once Bcc: works on same server, I will need to test Bcc on another server which I am sure requires the proper smtp configuration. Working code: ? $email = $_REQUEST['email']; $fromaddress = '[EMAIL PROTECTED]'; $fromname = g'; $eol = \r\n; $smtp = localhost; $headers = 'From: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'Bcc: [EMAIL PROTECTED]'; $eol = \r\n; $headers .= 'Reply-To: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'Return-Path: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'X-Mailer: PHP '.phpversion().$eol; $headers .= 'Content-Type: text/html; charset=iso-8859-1'.$eol; $headers .= 'Content-Transfer-Encoding: 8bit'; $subject = 'Your free book!'; $body = 'a href=http://www..com/freePDF/autopilotebook.pdf;Clic k ME/a Here is your FREE autopilot book'; mail($email, $subject, $body, $headers); ? _ From: David Giragosian [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 7:25 PM To: Brad Cc: php-general@lists.php.net Subject: Re: [PHP] two small issues with php mail On 11/19/07, Philip Thompson HYPERLINK mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote: On Nov 19, 2007 5:52 PM, Brad HYPERLINK mailto:[EMAIL PROTECTED][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?) I will refrain from the rest of the posts/slams and stick to your question in the (...). From and Bcc are *BOTH* part of the headers - that's why you want to concatenate them. By not using the . (dot), you are over-writing the From line. Bad/Pointless assignment: $headers = From: ...; $headers = Bcc: ...; Good/Useful assignment: $headers = From: ...; $headers .= Bcc: ...; Good luck. ~Philip Brad, If Philip's suggestion doesn't fix the problem, please post the relevant code, again. I've lost track of your original question. David 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 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 No virus found in this incoming message. Checked
Re: [PHP] two small issues with php mail
Brad wrote: For the purposes of this task, mailer is not an option. This is a class assignment to put us into the weeds. I am neck deep googling the heck out of this and finding snippets of un-related code which do not fit. Just because you can't use php-mailer in your project doesn't mean you can't use it as a reference. Grab phpmailer and look at the process it follows to do smtp sending. smtp authentication is a pain at the best of times but trying to do it the way you are now will just drive you mad (been there, done that). Looking at a working code sample will make things a lot clearer in your head rather than random code from 100 different locations. http://www.cosmonroe.org/~devin/postfix/smtp-auth.txt under SMTP Authentication will give you an idea of what you need to do but there is a ton more error checking and validation you need to do along the way. -- Postgresql php tutorials http://www.designmagick.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] two small issues with php mail
Note this code is untested and directly typed from a phone. ?php $to = '[EMAIL PROTECTED]'; $subject = 'Free iPod!'; $message = 'Even though I will be filtered, get your FREE iPod at http://www.obviouslyascam.com !'; $headers = array( 'From: [EMAIL PROTECTED]', 'Bbc: [EMAIL PROTECTED]', // ... ); $headers = implode(\r\n, $headers); if (mail($to, $subject, $message, $headers)) echo 'Success!'; else blameCasey(); ? Note: you might need to change some code before you use it (in an attempt to stop you from ripping off my code). On Nov 19, 2007, at 6:26 PM, Brad [EMAIL PROTECTED] wrote: For the purposes of this task, mailer is not an option. This is a class assignment to put us into the weeds. I am neck deep googling the heck out of this and finding snippets of un-related code which do not fit. Just seek help from a knowledgeable community to help me past the learning curve. And getting hit hard from hecklers in the process. I am not having a good day with php! I took this class because of it's Linux and Unix origin... I am not having a good day! -Original Message- From: Andrés Robinet [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 8:49 PM To: 'Brad' Cc: php-general@lists.php.net Subject: RE: [PHP] two small issues with php mail Did I miss something or the following line in your code is useless? $smtp = localhost; Brad, if you really need SMTP configuration, and you want to make your life easier with attachments and extra headers, give a chance to PHPMailer http://phpmailer.codeworxtech.com/. It's free, easy to set up and use, and can do much more than you need. Rob Andrés Robinet | Lead Developer | BESTPLACE CORPORATION 5100 Bayview Drive 206, Royal Lauderdale Landings, Fort Lauderdale, FL 33308 | TEL 954-607-4207 | FAX 954-337-2695 | Email: [EMAIL PROTECTED] | MSN Chat: [EMAIL PROTECTED] | SKYPE: bestplace | Web: bestplace.biz | Web: seo-diy.com Confidentiality: All information in this email message, including images, attachments, contains confidential and proprietary information of BESTPLACE CORPORATION and should only be used or serves for the intended purpose and should not be copied, used or disclosed to anyone other than the sole recipient of this e-mail message. -Original Message- From: Brad [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 10:27 PM To: php-general@lists.php.net Subject: FW: [PHP] two small issues with php mail _ From: Brad [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 8:26 PM To: 'David Giragosian' Subject: RE: [PHP] two small issues with php mail My original issue is trying to implement a Bcc and Emails are only making it to 50% of the recipients. Research and past experience says that I need to implement smtp into my code. Testing of the present “parse free” code show that email addresses on the same server: To: works Bcc: does not Once Bcc: works on same server, I will need to test Bcc on another server which I am sure requires the proper smtp configuration. Working code: ? $email = $_REQUEST['email']; $fromaddress = '[EMAIL PROTECTED]'; $fromname = ‘g'; $eol = \r\n; $smtp = localhost; $headers = 'From: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'Bcc: [EMAIL PROTECTED]'; $eol = \r\n; $headers .= 'Reply-To: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'Return-Path: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'X-Mailer: PHP '.phpversion().$eol; $headers .= 'Content-Type: text/html; charset=iso-8859-1'.$eol; $headers .= 'Content-Transfer-Encoding: 8bit'; $subject = 'Your free book!'; $body = 'a href=http://www..com/freePDF/ autopilotebook.pdfClic k ME/a Here is your FREE autopilot book'; mail($email, $subject, $body, $headers); ? _ From: David Giragosian [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 7:25 PM To: Brad Cc: php-general@lists.php.net Subject: Re: [PHP] two small issues with php mail On 11/19/07, Philip Thompson HYPERLINK mailto:[EMAIL PROTECTED][EMAIL PROTECTED] wrote: On Nov 19, 2007 5:52 PM, Brad HYPERLINK mailto:[EMAIL PROTECTED][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?) I will refrain from the rest of the posts/slams and stick to your question in the (...). From and Bcc are *BOTH* part of the headers - that's why you want to concatenate them. By not using the . (dot), you are over-writing the From line. Bad/Pointless assignment: $headers = From: ...; $headers = Bcc: ...; Good/Useful assignment: $headers = From: ...; $headers .= Bcc: ...; Good luck. ~Philip Brad, If Philip's suggestion doesn't fix the problem, please post the relevant code, again. I've lost track of your original question. David No virus found in this incoming message. Checked
RE: [PHP] two small issues with php mail
Responses like that is encouragement to drop php and move straight to ruby! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 9:07 PM To: Brad Subject: RE: [PHP] two small issues with php mail I'm sorry, but if you have to ask this question you need to get yourself a tutor - the intent of this mailing list is not that. - Rick Original Message Date: Monday, November 19, 2007 08:52:36 PM -0500 From: Brad [EMAIL PROTECTED] Cc: php-general@lists.php.net Subject: RE: [PHP] two small issues with php mail This is a new trick for me, can you kindly explain? I know what you are getting at, I am just not real sure on th method? Do I just replace mail and the end with print? Aka mail($email, $subject, $body, $headers); with print($email, $subject, $body, $headers); ?? -Original Message- Sent: Monday, November 19, 2007 8:44 PM To: Brad Subject: RE: [PHP] two small issues with php mail well, you need to do some basic debugging. a) replace your mail() function with print statements and review the output to make certain that it is correct. [this will require that you look at appropriate documentation to see how message headers/body should be formatted.] b) if a) looks right, then look at your mail server's logs to see what shows up there. - Rick Original Message Date: Monday, November 19, 2007 08:19:49 PM -0500 From: Brad [EMAIL PROTECTED] To: 'Philip Thompson' [EMAIL PROTECTED] Cc: php-general@lists.php.net Subject: RE: [PHP] two small issues with php mail It makes sense, but the Bcc is still not making it through. Not sure if the smtp portion is correct either. No parse errors, but no email from the bcc either. ? $email = $_REQUEST['email']; $fromaddress = '[EMAIL PROTECTED]'; $fromname = 'Zone of success Club'; $eol = \r\n; $smtp = localhost; $headers = 'From: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'Bcc: [EMAIL PROTECTED]'; $eol = \r\n; $headers .= 'Reply-To: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'Return-Path: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'X-Mailer: PHP '.phpversion().$eol; $headers .= 'Content-Type: text/html; charset=iso-8859-1'.$eol; $headers .= 'Content-Transfer-Encoding: 8bit'; $subject = 'Your free book!'; $body = 'a href=http://www.g.com/freePDF/autopilotebook.pdf;Cli ck ME/a Here is your FREE autopilot book'; mail($email, $subject, $body, $headers); ? -Original Message- From: Philip Thompson [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 7:00 PM To: php-general@lists.php.net Subject: Re: [PHP] two small issues with php mail On Nov 19, 2007 5:52 PM, 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?) I will refrain from the rest of the posts/slams and stick to your question in the (...). From and Bcc are *BOTH* part of the headers - that's why you want to concatenate them. By not using the . (dot), you are over-writing the From line. Bad/Pointless assignment: $headers = From: ...; $headers = Bcc: ...; Good/Useful assignment: $headers = From: ...; $headers .= Bcc: ...; Good luck. ~Philip -- End Original Message -- 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 -- End Original Message -- 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
RE: [PHP] two small issues with php mail
Sir, you are very kind, but your implementation of array has me as the monkey with a light bulb I know BASIC (the language) at a minimal. Basic functionality I know; Your implementation of core knowledge programming to php quarks is blowing my mind when looking at my existing problem. #1 You build your array with; = array( 'Function 1', 'function 2', //... ); ? //... ); ?? Skip the ... and end with ): Php has enough goof ball stuff, with it's mail function. Your suggestion is kind but you are shooting over my head... $headers = implode(\r\n, $headers); Implode Hmmm = build array here but, the usage of \r\n is already confusing me. The manual says to use it for Bcc Parse error says otherwise when not in you array. Why? Else blame casey Never, you are trying to help! Brad -Original Message- From: Casey [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 9:48 PM To: Brad Cc: Andrés Robinet; php-general@lists.php.net Subject: Re: [PHP] two small issues with php mail Note this code is untested and directly typed from a phone. ?php $to = '[EMAIL PROTECTED]'; $subject = 'Free iPod!'; $message = 'Even though I will be filtered, get your FREE iPod at http://www.obviouslyascam.com !'; $headers = array( 'From: [EMAIL PROTECTED]', 'Bbc: [EMAIL PROTECTED]', // ... ); $headers = implode(\r\n, $headers); if (mail($to, $subject, $message, $headers)) echo 'Success!'; else blameCasey(); ? Note: you might need to change some code before you use it (in an attempt to stop you from ripping off my code). On Nov 19, 2007, at 6:26 PM, Brad [EMAIL PROTECTED] wrote: For the purposes of this task, mailer is not an option. This is a class assignment to put us into the weeds. I am neck deep googling the heck out of this and finding snippets of un-related code which do not fit. Just seek help from a knowledgeable community to help me past the learning curve. And getting hit hard from hecklers in the process. I am not having a good day with php! I took this class because of it's Linux and Unix origin... I am not having a good day! -Original Message- From: Andrés Robinet [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 8:49 PM To: 'Brad' Cc: php-general@lists.php.net Subject: RE: [PHP] two small issues with php mail Did I miss something or the following line in your code is useless? $smtp = localhost; Brad, if you really need SMTP configuration, and you want to make your life easier with attachments and extra headers, give a chance to PHPMailer http://phpmailer.codeworxtech.com/. It's free, easy to set up and use, and can do much more than you need. Rob Andrés Robinet | Lead Developer | BESTPLACE CORPORATION 5100 Bayview Drive 206, Royal Lauderdale Landings, Fort Lauderdale, FL 33308 | TEL 954-607-4207 | FAX 954-337-2695 | Email: [EMAIL PROTECTED] | MSN Chat: [EMAIL PROTECTED] | SKYPE: bestplace | Web: bestplace.biz | Web: seo-diy.com Confidentiality: All information in this email message, including images, attachments, contains confidential and proprietary information of BESTPLACE CORPORATION and should only be used or serves for the intended purpose and should not be copied, used or disclosed to anyone other than the sole recipient of this e-mail message. -Original Message- From: Brad [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 10:27 PM To: php-general@lists.php.net Subject: FW: [PHP] two small issues with php mail _ From: Brad [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 8:26 PM To: 'David Giragosian' Subject: RE: [PHP] two small issues with php mail My original issue is trying to implement a Bcc and Emails are only making it to 50% of the recipients. Research and past experience says that I need to implement smtp into my code. Testing of the present parse free code show that email addresses on the same server: To: works Bcc: does not Once Bcc: works on same server, I will need to test Bcc on another server which I am sure requires the proper smtp configuration. Working code: ? $email = $_REQUEST['email']; $fromaddress = '[EMAIL PROTECTED]'; $fromname = g'; $eol = \r\n; $smtp = localhost; $headers = 'From: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'Bcc: [EMAIL PROTECTED]'; $eol = \r\n; $headers .= 'Reply-To: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'Return-Path: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'X-Mailer: PHP '.phpversion().$eol; $headers .= 'Content-Type: text/html; charset=iso-8859-1'.$eol; $headers .= 'Content-Transfer-Encoding: 8bit'; $subject = 'Your free book!'; $body = 'a href=http://www..com/freePDF/ autopilotebook.pdfClic k ME/a Here is your FREE autopilot book'; mail($email, $subject, $body, $headers); ? _ From: David Giragosian [mailto:[EMAIL PROTECTED
RE: [PHP] two small issues with php mail
Brad, This comment is extracted directly from PHPMailer source (before the implementation for the function AddBCC) /** * Adds a Bcc address. Note: this function works * with the SMTP mailer on win32, not with the mail * mailer. * @param string $address * @param string $name * @return void */ I don't really know the internals of how and why Bcc won't work with the mail function on windows, but if these guys who developed PHPMailer say so... Holy Word, so I wouldn't expect the mail function on Windows to work with Bcc. What you can do? Well... if Bcc is a requirement and you MUST do the code for Windows+PHP you'll have to write you own code to login to a SMTP server or use PHPMailer... (or any other ready made solution). If this is an assignment I really doubt your teacher's expectations are so high to let you go and develop such a thing (a class to interface a SMTP server). If you are testing the code in your Windows PC, I would recommend you testing your code in a real-world linux server, if that's an option for you. Other options include testing it on a linux box (if you have one, or you have a Windows-Linux dual boot as many people have) or even downloading the VMWare Player (http://www.vmware.com/) and one of the linux appliances that come with the LAMP suite from the start (if you don't have linux, or want to run linux while working in windows applications such as Dreamweaver). That said, don't blame PHP, don't blame us, and don't even blame your code, Bcc is not working due to an issue of the mail function in Windows (don't know why, I'm not an expert in the subject, and don't care either, I use PHPMailer). If you get the issue solved, we would also like to hear it. Rob -Original Message- From: Brad [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 11:49 PM To: php-general@lists.php.net Subject: FW: [PHP] two small issues with php mail -Original Message- From: Brad [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 9:48 PM To: 'Chris' Subject: RE: [PHP] two small issues with php mail Sir, I am trying... It just is not working... I am trying to implement the auth info, I go from parse error to no response from the server. I am reading your material and batting ZERO! I will keep on reading and somehow figure it out. You have been kind. I have the admin of this list now being a jerk! Brad -Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 9:39 PM To: Brad Cc: php-general@lists.php.net Subject: Re: [PHP] two small issues with php mail Brad wrote: For the purposes of this task, mailer is not an option. This is a class assignment to put us into the weeds. I am neck deep googling the heck out of this and finding snippets of un-related code which do not fit. Just because you can't use php-mailer in your project doesn't mean you can't use it as a reference. Grab phpmailer and look at the process it follows to do smtp sending. smtp authentication is a pain at the best of times but trying to do it the way you are now will just drive you mad (been there, done that). Looking at a working code sample will make things a lot clearer in your head rather than random code from 100 different locations. http://www.cosmonroe.org/~devin/postfix/smtp-auth.txt under SMTP Authentication will give you an idea of what you need to do but there is a ton more error checking and validation you need to do along the way. -- Postgresql php tutorials http://www.designmagick.com/ 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 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
Re: [PHP] two small issues with php mail
The reason I am using \r\n is because the PHP Manual says so (http://us2.php.net/manual/en/function.mail.php#id367). I use implode because it is easier [in my opinion], but you will achieve the same result with: From: [EMAIL PROTECTED]: [EMAIL PROTECTED]; On Nov 19, 2007 7:22 PM, Brad [EMAIL PROTECTED] wrote: Sir, you are very kind, but your implementation of array has me as the monkey with a light bulb I know BASIC (the language) at a minimal. Basic functionality I know; Your implementation of core knowledge programming to php quarks is blowing my mind when looking at my existing problem. #1 You build your array with; = array( 'Function 1', 'function 2', //... ); ? //... ); ?? Skip the ... and end with ): Php has enough goof ball stuff, with it's mail function. Your suggestion is kind but you are shooting over my head... $headers = implode(\r\n, $headers); Implode Hmmm = build array here but, the usage of \r\n is already confusing me. The manual says to use it for Bcc Parse error says otherwise when not in you array. Why? Else blame casey Never, you are trying to help! Brad -Original Message- From: Casey [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 9:48 PM To: Brad Cc: Andrés Robinet; php-general@lists.php.net Subject: Re: [PHP] two small issues with php mail Note this code is untested and directly typed from a phone. ?php $to = '[EMAIL PROTECTED]'; $subject = 'Free iPod!'; $message = 'Even though I will be filtered, get your FREE iPod at http://www.obviouslyascam.com !'; $headers = array( 'From: [EMAIL PROTECTED]', 'Bbc: [EMAIL PROTECTED]', // ... ); $headers = implode(\r\n, $headers); if (mail($to, $subject, $message, $headers)) echo 'Success!'; else blameCasey(); ? Note: you might need to change some code before you use it (in an attempt to stop you from ripping off my code). On Nov 19, 2007, at 6:26 PM, Brad [EMAIL PROTECTED] wrote: For the purposes of this task, mailer is not an option. This is a class assignment to put us into the weeds. I am neck deep googling the heck out of this and finding snippets of un-related code which do not fit. Just seek help from a knowledgeable community to help me past the learning curve. And getting hit hard from hecklers in the process. I am not having a good day with php! I took this class because of it's Linux and Unix origin... I am not having a good day! -Original Message- From: Andrés Robinet [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 8:49 PM To: 'Brad' Cc: php-general@lists.php.net Subject: RE: [PHP] two small issues with php mail Did I miss something or the following line in your code is useless? $smtp = localhost; Brad, if you really need SMTP configuration, and you want to make your life easier with attachments and extra headers, give a chance to PHPMailer http://phpmailer.codeworxtech.com/. It's free, easy to set up and use, and can do much more than you need. Rob Andrés Robinet | Lead Developer | BESTPLACE CORPORATION 5100 Bayview Drive 206, Royal Lauderdale Landings, Fort Lauderdale, FL 33308 | TEL 954-607-4207 | FAX 954-337-2695 | Email: [EMAIL PROTECTED] | MSN Chat: [EMAIL PROTECTED] | SKYPE: bestplace | Web: bestplace.biz | Web: seo-diy.com Confidentiality: All information in this email message, including images, attachments, contains confidential and proprietary information of BESTPLACE CORPORATION and should only be used or serves for the intended purpose and should not be copied, used or disclosed to anyone other than the sole recipient of this e-mail message. -Original Message- From: Brad [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 10:27 PM To: php-general@lists.php.net Subject: FW: [PHP] two small issues with php mail _ From: Brad [mailto:[EMAIL PROTECTED] Sent: Monday, November 19, 2007 8:26 PM To: 'David Giragosian' Subject: RE: [PHP] two small issues with php mail My original issue is trying to implement a Bcc and Emails are only making it to 50% of the recipients. Research and past experience says that I need to implement smtp into my code. Testing of the present parse free code show that email addresses on the same server: To: works Bcc: does not Once Bcc: works on same server, I will need to test Bcc on another server which I am sure requires the proper smtp configuration. Working code: ? $email = $_REQUEST['email']; $fromaddress = '[EMAIL PROTECTED]'; $fromname = 'g'; $eol = \r\n; $smtp = localhost; $headers = 'From: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'Bcc: [EMAIL PROTECTED]'; $eol = \r\n; $headers .= 'Reply-To: '.$fromname.' '.$fromaddress.''.$eol; $headers .= 'Return-Path: '.$fromname
Re: [PHP] two small issues with php mail
Brad wrote: It makes sense, but the Bcc is still not making it through. Not sure if the smtp portion is correct either. No parse errors, but no email from the bcc either. ? $email = $_REQUEST['email']; $fromaddress = '[EMAIL PROTECTED]'; $fromname = 'Zone of success Club'; $eol = \r\n; $smtp = localhost; I told you this earlier!!! NOTICE: you are trying to use $eol here $headers = 'From: '.$fromname.' '.$fromaddress.''.$eol; but you don't define it until HERE. $headers .= 'Bcc: [EMAIL PROTECTED]'; $eol = \r\n; MOVE IT TO THE TOP OF YOUR SCRIPT!!! secondly, this would have been averted if you would turn on error reporting and display errors (something that should be used when developing). Something along the line of this at the top of your script will do the trick. ?php // Sets error reporting level to a somewhat high level of reporting. error_reporting(E_ALL); // Sends error messages to the browser ini_set('display_errors', 1); ... ? -- Jim Lucas Perseverance is not a long race; it is many short races one after the other Walter Elliot Some men are born to greatness, some achieve greatness, and some have greatness thrust upon them. Twelfth Night, Act II, Scene V by William Shakespeare -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php