[PHP] mailparse or imap* ?

2004-10-31 Thread Per Jessen
I need functions to parse an email and I've been using mailparse sofar. Works pretty well, except it has a couple of shortcomings - will only retrieve last of the Received:-headers, does not decode quoted-printable body-parts, does not decode RFC2047-encoded filenames in COntent-Disposition. So

[PHP] MultiSelect List Box in PHP

2004-10-31 Thread Andy B
Hi. I was just wondering where I can find info on how to use a MultiSelect List Box with PHP? I need to use it with MYSQL 5.0.0, PHP 4.3.9, and windows XP sp2. Any help/leads would be greatly appreciated. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: image files - upload and managment

2004-10-31 Thread Per Jessen
Robby Russell wrote: I tend to stick as much in the database with strict restraints. I know that in my database, an image cannot be deleted unless several rules are met. In the filesystem, a number of things could accidently delete the wrong file. I treat my images as another piece of data

RE: [PHP] MultiSelect List Box in PHP

2004-10-31 Thread Andy B
Sorry that doesn't do me a huge bit of good since I have no clue how to write java in the first place. Does anybody know where I can find or get an example of php code that shows how to get all the selected items from a multiselect listbox and loop through them printing them on the screen??

Re: [PHP] PHP in CGI ....php.in

2004-10-31 Thread Christian Ista
where did you place your php.ini? In the root of my application in www. /home/mydomaine/www Thanks, Christian, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MultiSelect List Box in PHP

2004-10-31 Thread M. Sokolewicz
-[ input.html ]-- html form action=input.php method=post select name=select[] multiple option value=1one/option option value=2two/option option value=3three/option /select input type=submit value=submit name=submit /form /html -[]-- -[

RE: [PHP] MultiSelect List Box in PHP

2004-10-31 Thread -{ Rene Brehmer }-
You can use this to work with. It's something I made some time ago, so it's probably not the most optimal solution, but it gets the job done... In this case it builds parameters for a SQL query, but it's easily modified to suit your needs. The reason it's a 'for' loop and not a 'foreach' is

Re: [PHP] MultiSelect List Box in PHP

2004-10-31 Thread -{ Rene Brehmer }-
Would be easier if you didn't send it as HTML ... bad boy you Rene At 10:00 31-10-2004, M. Sokolewicz wrote: -[ input.html ]-- one two three -[]-- -[ input.php ]-- ?php print_r($_POST); ? -[]--

[PHP] Matching *exact* string?

2004-10-31 Thread Nick Wilson
hello all I am foreach()ing through an array of ip addresses in a 'ban script' and have the following php code: foreach($ips as $ip) { preg_match(/$ip/, $_SERVER[REMOTE_ADDR]); $ban = TRUE; } This is great, but if 127.0.0 were in the ban list (for example) it would still produce a ban as it

[PHP] beginnind and end of the week

2004-10-31 Thread Jerry Swanson
I need to run a query using PHP/MYSQL. The query should be for a week. So if today is tuesday, the query should be from Monday to Sunday. How in in php I can know when the beginning and end of the week? TH -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] Re: Matching *exact* string?

2004-10-31 Thread Per Jessen
Nick Wilson wrote: hello all I am foreach()ing through an array of ip addresses in a 'ban script' and have the following php code: foreach($ips as $ip) { preg_match(/$ip/, $_SERVER[REMOTE_ADDR]); $ban = TRUE; } This is great, but if 127.0.0 were in the ban list (for example) it

Re: [PHP] Matching *exact* string?

2004-10-31 Thread Klaus Reimer
Nick Wilson wrote: How can I alter the above so that only *exact* matches are banned? Using ^ and $ to mark the begin and end of the line. So try this /^$ip\$/ -- Bye, K http://www.ailis.de/~k/ (FidoNet: 2:240/2188.18) [A735 47EC D87B 1F15 C1E9 53D3 AA03 6173 A723 E391] (Finger [EMAIL PROTECTED]

[PHP] Re: Matching *exact* string?

2004-10-31 Thread Aidan Lister
I cannot fathom why you would use preg_match for this. This will get an exact match... if ($ip == $_SERVER[REMOTE_ADDR]) { $ban = true; } Despite this being the worst idea I've ever seen, combined with a true lack of understanding, I wish you well. Nick Wilson [EMAIL PROTECTED] wrote in

[PHP] Re: Matching *exact* string?

2004-10-31 Thread Daniel Schierbeck
Nick Wilson wrote: hello all I am foreach()ing through an array of ip addresses in a 'ban script' and have the following php code: foreach($ips as $ip) { preg_match(/$ip/, $_SERVER[REMOTE_ADDR]); $ban = TRUE; } This is great, but if 127.0.0 were in the ban list (for example) it would still

Re: [PHP] beginnind and end of the week

2004-10-31 Thread Sebastien Pahud
Hi Jerry, I dunno if i got what you want to do... But i would say : 1. Set a number to each day of the week (0 = sunday, 1 = monday, 6 = saturday) 2. Get the date of today, so you can get the number of the day : $noDay 3. Do you SQL request from ($noDay + 1) to ($noDay-1) (just need to test if

[PHP] Re: Matching *exact* string?

2004-10-31 Thread Daniel Schierbeck
Daniel Schierbeck wrote: Nick Wilson wrote: hello all I am foreach()ing through an array of ip addresses in a 'ban script' and have the following php code: foreach($ips as $ip) { preg_match(/$ip/, $_SERVER[REMOTE_ADDR]); $ban = TRUE; } This is great, but if 127.0.0 were in the ban list (for

Re: [PHP] Re: Matching *exact* string?

2004-10-31 Thread Nick Wilson
* and then Aidan Lister declared I cannot fathom why you would use preg_match for this. This will get an exact match... if ($ip == $_SERVER[REMOTE_ADDR]) { $ban = true; } Ahh.. an oversight. The script has been cobbled together from a previous version that supported partial matches. I'd

Re: [PHP] Re: Matching *exact* string?

2004-10-31 Thread Nick Wilson
* and then Per Jessen declared foreach($ips as $ip) { preg_match(/^$ip$/, $_SERVER[REMOTE_ADDR]); $ban = TRUE; } Great! - found a more sutable way but that's appreciated. Cheers! -- Nick W -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: Matching *exact* string?

2004-10-31 Thread Nick Wilson
* and then Daniel Schierbeck declared I'd rather go with something like this: $banned_ips = array('123.123.123.123', '321.321.321.321'); // Banned IPs if (in_array($_SERVER['REMOTE_ADDR'], $banned_ips)) { die('Dude, you\'re banned!'); } But if I were you I'd choose something

Re: [PHP] Re: Matching *exact* string?

2004-10-31 Thread Greg Donald
On Sun, 31 Oct 2004 12:58:04 +0100, Nick Wilson [EMAIL PROTECTED] wrote: I think in_array() sounds like a great solution, wonder if it's faster than comparing each ooe with == ? thanks! Benchmark it both ways and find out. Then post back and tell us. :) -- Greg Donald Zend Certified

Re: [PHP] mysql_select_db error

2004-10-31 Thread Greg Donald
On Sun, 31 Oct 2004 00:19:12 -0400, Steven James Samuel Stapleton [EMAIL PROTECTED] wrote: Relevant information: Windows XP Pro SP2 PHP 5.0.2 MySQL 4.0.21-nt command line (not server-side) mysql_select_db returns no errors, and does not result in a mysql_error(), however, later queries

Re: [PHP] image files - upload and managment

2004-10-31 Thread Greg Donald
On 30 Oct 2004 22:30:35 -, Matthew Weier O'Phinney [EMAIL PROTECTED] wrote: I have difficulty believing retrieving an image from a database will have similar speed performance as simply grabbing it from the filesystem... and if you're seeing a need to cache images on the filesystem

[PHP] Reflection API, ReflectionMethod::invoke(object $obj, array $args)

2004-10-31 Thread Demian Turner
Hi Sebastian Apologies for the random email, I wonder if you can take a look at a PHP5 aggregation issue I've run into. I've modified your aggregation/delegate example[1] trying to get it to work as there appear to have been API changes since that was written. Getting the method of the

Re: [PHP] Re: Matching *exact* string?

2004-10-31 Thread Nick Wilson
* and then Greg Donald declared On Sun, 31 Oct 2004 12:58:04 +0100, Nick Wilson [EMAIL PROTECTED] wrote: I think in_array() sounds like a great solution, wonder if it's faster than comparing each ooe with == ? thanks! Benchmark it both ways and find out. Then post back and tell us.

[PHP] Unable to validate XML with Schema if namespace is specified.

2004-10-31 Thread Dusty Bin
I am trying to validate an XML document, using DomDocument::schemaValidate() as in the following code: ?php $txt =EOT ?xml version=1.0? Article xmlns='http://www.example.com/xml' ItemItemText/Item /Article EOT; $dom = new DOMDocument(); $dom-loadXML($txt); if ($dom-schemaValidate(Article.xsd))

[PHP] php command to open a url?

2004-10-31 Thread Ken Tozier
I've been looking around in the php documentation for a couple of hours now but can't seem to find any functions to open a url in the current browser window. Does php allow this? If so, could someone point me to a link? Basically what I'm trying to do is loop back in a login form until a user

Re: [PHP] php command to open a url?

2004-10-31 Thread Lists
header (Location: ./); exit; I use the above at the end of a authorization script, to direct back to a page. On Oct 31, 2004, at 12:03 PM, Ken Tozier wrote: I've been looking around in the php documentation for a couple of hours now but can't seem to find any functions to open a url in the

[PHP] Re: php command to open a url?

2004-10-31 Thread Ben Ramsey
Ken Tozier wrote: I've been looking around in the php documentation for a couple of hours now but can't seem to find any functions to open a url in the current browser window. Does php allow this? If so, could someone point me to a link? Check out the PHP header() function, specifically the

[PHP] Re: SOAP w/PHP 4

2004-10-31 Thread Ben Ramsey
Dan Joseph wrote: Does PHP 4 support SOAP, or does something have to be added to it?? I know I've already given you some pointers on this, and hopefully you're on your way to playing with PHP and SOAP, but I noticed a potentially helpful article in the current issue of PHP Magazine. It's by

RE: [PHP] MultiSelect List Box in PHP

2004-10-31 Thread Andy B
I need to be able to print the selected items without the array... thing around it. so example would be if 1 and 2 are selected it would print: 1, 2 it's supposed to be formatted for the user... -Original Message- From: -{ Rene Brehmer }- [mailto:[EMAIL PROTECTED] Sent: Sunday, October

[PHP] mysql_fetch_assoc(): 3 is not a valid MySQL result resource

2004-10-31 Thread Ross Hulford
My page displays the first result and then I get the following error. Warning: mysql_fetch_assoc(): 3 is not a valid MySQL result resource in c:\inetpub\wwwroot\testy\Untitled-1.php on line 29 Please help. R. my code. ?php

Re: [PHP] MultiSelect List Box in PHP

2004-10-31 Thread Marek Kilimajer
implode() Andy B wrote: I need to be able to print the selected items without the array... thing around it. so example would be if 1 and 2 are selected it would print: 1, 2 it's supposed to be formatted for the user... -Original Message- From: -{ Rene Brehmer }- [mailto:[EMAIL PROTECTED]

[PHP] code problem

2004-10-31 Thread Ross Hulford
This is my code... ?php require_once('Connections/ross.php'); ? ?php $maxRows_Recordset1 = 10; $pageNum_Recordset1 = 0; if (isset($_GET['pageNum_Recordset1'])) { $pageNum_Recordset1 = $_GET['pageNum_Recordset1']; } $startRow_Recordset1 = $pageNum_Recordset1 *

[PHP] Help with Advanced Guestbook

2004-10-31 Thread Melanie
I am trying to use Advanced Guestbook in my website (www.tracingfootprints.com) but would like to have it match (in style, background, etc) the other pages in the site. I've been trying to figure out how to do that (with very limited PHP knowledge) without success. My site is hosted by Go

Re: [PHP] code problem

2004-10-31 Thread John Holmes
Ross Hulford wrote: This is my code... [snip] mysql_free_result($Recordset1); ... ?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ? It displays one result then thows up the following error Warning: mysql_fetch_assoc(): 3 is not a valid MySQL result

RE: [PHP] MultiSelect List Box in PHP

2004-10-31 Thread Andy B
here is my total code for this file: //note that the html structure isn't there yet but it still gives the general idea ? include(libs/conf.db); mysql_connect($host, $mysqluser, $mysqlpwd); $query=mysql_query(select company from wata.members); ? form method=post action=?echo

Re: [PHP] Help with Advanced Guestbook

2004-10-31 Thread Lists
It looks like you can change quite a bit by opening the body.php file in the templates folder. If you are using FP, if you haven't already, make sure to set it so it does not affect code. You might want to open that in Notepad to make sure though. On Oct 31, 2004, at 1:03 PM, Melanie wrote:

[PHP] str_pad with nbsp;

2004-10-31 Thread Jonel Rienton
Hi guys, i was trying to do an str_pad with nbsp; (space) but somehow it's just putting in one space and nbs sample code: ? echo str_pad($varname,20,nbsp; ? anybody else experienced this? thanks and regards, jonel -- I not know English well, but I know 7 computer languages. -anonymous -- PHP

Re: [PHP] PHP in CGI ....php.in

2004-10-31 Thread Jonel Rienton
have you tried #!/usr/local/lib/php -c /home/mydomaine/www -- I not know English well, but I know 7 computer languages. On Oct 31, 2004, at 2:32 AM, Christian Ista wrote: where did you place your php.ini? In the root of my application in www. /home/mydomaine/www Thanks, Christian, -- PHP General

Re: [PHP] str_pad with nbsp;

2004-10-31 Thread Greg Donald
On Sun, 31 Oct 2004 16:13:44 -0600, Jonel Rienton [EMAIL PROTECTED] wrote: i was trying to do an str_pad with nbsp; (space) but somehow it's just putting in one space and nbs sample code: ? echo str_pad($varname,20,nbsp; ? anybody else experienced this? nbsp; is 6 characters. It may

RE: [PHP] MultiSelect List Box in PHP

2004-10-31 Thread Chris Shiflett
--- Andy B [EMAIL PROTECTED] wrote: I need to be able to print the selected items without the array... thing around it. so example would be if 1 and 2 are selected it would print: 1, 2 It sounds like you just need to learn how to use arrays with PHP. The manual is a good place to start:

[PHP] Help with preg_match_all()

2004-10-31 Thread Francisco Javier Escoppinichi Fernández
Hello people... I'm relatively a beginner with regular expressions, so I need a little help here.. I hope you can help me... Ok, I have a HTML file with several tags like this: {$base.username} {$base.date} {$blog.lastpost} And so on.. It's a kind of a template system... well... I need to

Re: [PHP] php compiler

2004-10-31 Thread Hodicska Gergely
Hi! I think the precedence of left and right associative operands can't be compared. The switch between associativities already separates the expression (if it could be explained this way). Yes, this behaviour confused me. This is not common in other programming languages: o C :

[PHP] Getting Information From Another Page

2004-10-31 Thread GH
I would like to know how to extract the following from the website http://www.state.ny.us/security/ The Values for New York State is currently at: New York City is currently at: I would like to store this information into my database and check it every half hour to see if it has been

Re: [PHP] Getting Information From Another Page

2004-10-31 Thread Jason Wong
On Sunday 31 October 2004 23:12, GH wrote: I would like to know how to extract the following from the website http://www.state.ny.us/security/ The Values for New York State is currently at: New York City is currently at: I would like to store this information into my database and check

[PHP] Need to add a 0 to a float number

2004-10-31 Thread Brent Clements
Hi, How would I add a 0 to variables that have the following? I want $var = 6.5 to be converted to $var = 6.50 Thanks, Brent

[PHP] PHP Working With Excel File ?

2004-10-31 Thread Sejati Opreker
Hi, Can PHP work with Excel files as database ? If not, how can I conver it to MySQL format and reconvert it to Excel 'coz I need it to report it in Excel format, Thx ___ Do you Yahoo!? Express yourself with Y! Messenger! Free. Download now.

Re: [PHP] Need to add a 0 to a float number

2004-10-31 Thread Brent Clements
Solved my own problem Note to self, RTFM: number_format is w hat I needed. Thanks, Brent - Original Message - From: Brent Clements [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, October 31, 2004 8:01 PM Subject: [PHP] Need to add a 0 to a float number Hi, How would I add a 0

Re: [PHP] PHP Working With Excel File ?

2004-10-31 Thread p80
On Monday 01 November 2004 02:58 am, Sejati Opreker wrote: Hi, Can PHP work with Excel files as database ? If not, how can I conver it to MySQL format and reconvert it to Excel 'coz I need it to report it in Excel format, With exel, export your exel file to CSV (by doing save as...) then you

Re: [PHP] PHP Working With Excel File ?

2004-10-31 Thread p80
On Monday 01 November 2004 02:58 am, Sejati Opreker wrote: Hi, Can PHP work with Excel files as database ? If not, how can I conver it to MySQL format and reconvert it to Excel 'coz I need it to report it in Excel format, Thx With exel, export your exel file to CSV (by doing save as...)

Re: [PHP] php compiler

2004-10-31 Thread Curt Zirzow
* Thus wrote Hodicska Gergely: Hi! I think the precedence of left and right associative operands can't be compared. The switch between associativities already separates the expression (if it could be explained this way). Yes, this behaviour confused me. This is not common in other

Re: [PHP] beginnind and end of the week

2004-10-31 Thread Curt Zirzow
* Thus wrote Jerry Swanson: I need to run a query using PHP/MYSQL. The query should be for a week. So if today is tuesday, the query should be from Monday to Sunday. How in in php I can know when the beginning and end of the week? ?php // in case the date unlikley changes $t =

Re: [PHP] mysql_fetch_assoc(): 3 is not a valid MySQL result resource

2004-10-31 Thread Curt Zirzow
* Thus wrote Ross Hulford: My page displays the first result and then I get the following error. Warning: mysql_fetch_assoc(): 3 is not a valid MySQL result resource in c:\inetpub\wwwroot\testy\Untitled-1.php on line 29 Please help. R. my code.

Re: [PHP] Help with preg_match_all()

2004-10-31 Thread Curt Zirzow
* Thus wrote Francisco Javier Escoppinichi Fernndez: Hello people... I'm relatively a beginner with regular expressions, so I need a little help here.. I hope you can help me... If you read the whole section @ http://php.net/pcre you'll be able to do this in your sleep. Ok, I have a HTML

[PHP] PHP_EOL on Darwin?

2004-10-31 Thread Greg Beaver
Hi all, What's the standard line ending for Darwin? is it still the same as old Mac, which I think was just \r? Or does it use \n like unix? Greg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help with preg_match_all()

2004-10-31 Thread Francisco Javier Escoppinichi Fernández
Thanks! Worked like a charm! *Problem solved* On Mon, 1 Nov 2004 03:01:12 +, Curt Zirzow [EMAIL PROTECTED] wrote: * Thus wrote Francisco Javier Escoppinichi Fernndez: Hello people... I'm relatively a beginner with regular expressions, so I need a little help here.. I hope you can

[PHP] Simple math failing - PHP Bug?

2004-10-31 Thread Brian T. Allen
Hi, OK, I'm totally stumped by this. This should be the simplest math imaginable (addition and subtraction), but PHP is coming up with the wrong answer! I've checked on 3 different machines (all linux) running both PHP 4 and PHP 5. Here is the code to duplicate the problem:

Re: [PHP] Simple math failing - PHP Bug?

2004-10-31 Thread Thomas Goyne
On Sun, 31 Oct 2004 21:52:32 -0700, Brian T. Allen [EMAIL PROTECTED] wrote: Hi, OK, I'm totally stumped by this. This should be the simplest math imaginable (addition and subtraction), but PHP is coming up with the wrong answer! [snip] Is this legitimately bad math on the part of PHP?

Re: [PHP] Simple math failing - PHP Bug?

2004-10-31 Thread Jason Wong
On Monday 01 November 2004 04:52, Brian T. Allen wrote: OK, I'm totally stumped by this. This should be the simplest math imaginable (addition and subtraction), but PHP is coming up with the wrong answer! I've checked on 3 different machines (all linux) running both PHP 4 and PHP 5.

Re: [PHP] Simple math failing - PHP Bug?

2004-10-31 Thread Chris Shiflett
--- Jason Wong [EMAIL PROTECTED] wrote: Most computer languages handling floating point calculations just as poorly. If accuracy is important use the BCMath functions. Or use Fortran and double precision. :-) Still, testing a floating point number as a boolean is one of the worst ideas I've

Re: [PHP] Simple math failing - PHP Bug?

2004-10-31 Thread Brian T. Allen
Thomas Goyne wrote: On Sun, 31 Oct 2004 21:52:32 -0700, Brian T. Allen [EMAIL PROTECTED] wrote: Hi, OK, I'm totally stumped by this. This should be the simplest math imaginable (addition and subtraction), but PHP is coming up with the wrong answer! [snip] Is this legitimately bad math on

Re: [PHP] Simple math failing - PHP Bug?

2004-10-31 Thread Brian T. Allen
Chris Shiflett wrote: --- Jason Wong [EMAIL PROTECTED] wrote: Most computer languages handling floating point calculations just as poorly. If accuracy is important use the BCMath functions. Or use Fortran and double precision. :-) Still, testing a floating point number as a boolean is one

Re: [PHP] Simple math failing - PHP Bug?

2004-10-31 Thread Chris Shiflett
--- Brian T. Allen [EMAIL PROTECTED] wrote: Well, in fairness, it's one of the worst ideas you've ever heard because you know of this limitation. Of course. That wasn't a dig at you or anything - just a comment. You're free to heed or ignore it. In reality, using a calculator or something

Re: [PHP] Unable to validate XML with Schema if namespace is specified.

2004-10-31 Thread Christian Stocker
On Sun, 31 Oct 2004 19:08:04 +, Dusty Bin [EMAIL PROTECTED] wrote: I am trying to validate an XML document, using DomDocument::schemaValidate() as in the following code: ?php $txt =EOT ?xml version=1.0? Article xmlns='http://www.example.com/xml' ItemItemText/Item /Article EOT;

Re: [PHP] Simple math failing - PHP Bug?

2004-10-31 Thread Brian T. Allen
Chris Shiflett wrote: --- Brian T. Allen [EMAIL PROTECTED] wrote: Well, in fairness, it's one of the worst ideas you've ever heard because you know of this limitation. Of course. That wasn't a dig at you or anything - just a comment. You're free to heed or ignore it. In reality, using a

Re: [PHP] Simple math failing - PHP Bug?

2004-10-31 Thread M. Sokolewicz
Brian T. Allen wrote: Chris Shiflett wrote: --- Brian T. Allen [EMAIL PROTECTED] wrote: Well, in fairness, it's one of the worst ideas you've ever heard because you know of this limitation. Of course. That wasn't a dig at you or anything - just a comment. You're free to heed or ignore it.

[PHP] PLEASE HELP ON MAIL FUNCTION

2004-10-31 Thread kunal Aggarwal
Dear friend, I am using PHP 4.3.4 version. Please tell how to unpload a mail function. Error comes on executing mail function is mail(): SMTP server response: 550 5.7.1 Unable to relay for [EMAIL PROTECTED] in C:\Program Files\Apache

Re: [PHP] Simple math failing - PHP Bug?

2004-10-31 Thread Thomas Goyne
On Sun, 31 Oct 2004 23:30:53 -0700, Brian T. Allen [EMAIL PROTECTED] wrote: No worries, this isn't personal. I just want to explore this limitation and it's implications for my benefit and the benefit of any that read this thread later when they are searching for answers to a similar

Re: [PHP] PLEASE HELP ON MAIL FUNCTION

2004-10-31 Thread Chris
Your Apache/PHP Mail function is working properly. The SMTP server needs to be configured to relay email from the PHP server. The normal configuration would be to allow the relay of all mail from that server. Chris kunal Aggarwal wrote: Dear friend, I am using PHP 4.3.4 version. Please tell

[PHP] Re: PLEASE HELP ON MAIL FUNCTION

2004-10-31 Thread Manuel Lemos
Hello, On 11/01/2004 03:58 AM, Kunal Aggarwal wrote: I am using PHP 4.3.4 version. Please tell how to unpload a mail function. Error comes on executing mail function is mail(): SMTP server response: 550 5.7.1 Unable to relay for [EMAIL PROTECTED] in C:\Program Files\Apache