Re: [PHP] Mail Function Problem

2010-04-12 Thread kranthi
when you install pear package Mail a file called Mail.php will be installed into C:/xampp/php/PEAR >> Mail.php contains the class Mail. So getting a "class not found" error is >> not possible.. are you sure you are doing require_once 'Mail.php' ? -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] Mail Function Problem

2010-04-12 Thread Karl DeSaulniers
Hey Alice, Try throwing the MIME in. Sometimes messages get thrown in an abyss if they don't know the MIME version or content type of an email. They think its spam and so you wouldn't get an error message on your end. Just no email. $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Cont

RE: [PHP] Mail Function Problem

2010-04-12 Thread Alice Wei
> From: kranthi...@gmail.com > Date: Tue, 13 Apr 2010 07:41:19 +0530 > Subject: Re: [PHP] Mail Function Problem > To: aj...@alumni.iu.edu > CC: k...@daleco.biz; php-general@lists.php.net > > thats weired... > Mail.php contains the class Mail. So getting a "class not found" error > is not possible

Re: [PHP] Mail Function Problem

2010-04-12 Thread kranthi
thats weired... Mail.php contains the class Mail. So getting a "class not found" error is not possible... (require_once stops the script in case it can't find Mail.php) >> Do I need to move the Mail PEAR class to the same folder as my web folder ensure that C:/xampp/php/PEAR folder is added to your

RE: [PHP] Mail Function Problem

2010-04-12 Thread Alice Wei
> Date: Mon, 12 Apr 2010 15:54:05 -0500 > From: k...@daleco.biz > To: kranthi...@gmail.com > CC: aj...@alumni.iu.edu; php-general@lists.php.net > Subject: Re: [PHP] Mail Function Problem > > kranthi wrote: > > PEAR's mail package does support authentication. > > http://email.about.com/od/emailpro

Re: [PHP] Mail Function Problem

2010-04-12 Thread Karl DeSaulniers
Hi Alice, I have a sendmail script I wrote on my way to learning PHP. Uses PHP 4 i believe, maybe 5. Wrote it a while ago. You and anyone else are welcome to use it/modify. You can reference this php it from multiple forms. Just specify the form names it should accept and their parameters. It can

Re: [PHP] Solution

2010-04-12 Thread Karl DeSaulniers
Hey Gary, instead try something like this maybe? $dbc=mysqli_connect('localhost','root','','test') or die('Error connecting to MySQL server'); $query_name="INSERT INTO name(fname='$fname', lname='$lname')"; $query_address="INSERT INTO address (street='$street', town='$town', state='$state'

RE: [PHP] Mail Function Problem

2010-04-12 Thread Alice Wei
Hi, Thanks to everyone's suggestions, I have followed some instructions from http://www.geeksengine.com/article/install-pear-on-windows.html and attempted to install PEAR. The problem is, when I do a test page, which only has: . utor It only gives me a blank page, with no errors. Has a

Re: [PHP] Solution

2010-04-12 Thread Peter Lind
On 13 April 2010 00:04, Gary wrote: > For those that were looking to see a solution, this is what I have come up > with.  It was pointed out on another board (MySQL) that inserting multiple > in one script is probably prohibited because of security reasons. > > What I did was open the connection,

[PHP] Solution

2010-04-12 Thread Gary
lt = mysqli_query($dbc, $query) >> or die('Error querying database.'); >> > > I see 2 problems: > > 1) your sql statements are not separated by semicolon <- very important > when executing multiquery > 2) you could try mysql_multi_query > http://www.ph

Re: [PHP] Inserting into multiple tables

2010-04-12 Thread Gary
> Sales table > > Sales ID -- Customer ID -- Item ID -- and probably the date. > 1234 -- 6789 -- 101112131415 -- 4/12/10 > > Cheers, > > tedd > > > -- > --- > http://sperling.com http://ancientstones.com http://earthstones.com > > __

Re: [PHP] Mail Function Problem

2010-04-12 Thread Kevin Kinsey
kranthi wrote: PEAR's mail package does support authentication. http://email.about.com/od/emailprogrammingtips/qt/PHP_Email_SMTP_Authentication.htm I will say "mea culpa" on this one; apparently I didn't dig deep enough into the PEAR docs to figure this out. It's certainly not mentioned on the

Re: [PHP] Inserting into multiple tables

2010-04-12 Thread tedd
At 11:05 AM -0400 4/12/10, Gary wrote: -snip- If normalization is so important, why is it that the INSERT INTO multiple tables is not a standard command or procedure?. In my view, you are mixing apples and oranges. "Normalization" is simply cutting down on repetition. Inserting data into mult

Re: [PHP] Mail Function Problem

2010-04-12 Thread kranthi
PEAR's mail package does support authentication. http://email.about.com/od/emailprogrammingtips/qt/PHP_Email_SMTP_Authentication.htm In case you get a "Sent Successfully" message (but didn't get a mail in your inbox or spam folder) there is a problem with your SMTP server configuration. And >> The

RE: [PHP] Mail Function Problem

2010-04-12 Thread Teus Benschop
On Mon, 2010-04-12 at 12:58 -0400, Alice Wei wrote: > Hi, > > I found an article on the item you described. > http://www.talkphp.com/vbarticles.php?do=article&articleid=51&title=sending-emails-with-the-zend-framework, > but I am using Windows on my PHP. Would this still work? Looks like the >

RE: [PHP] Mail Function Problem

2010-04-12 Thread Alice Wei
> Date: Mon, 12 Apr 2010 11:09:42 -0500 > From: k...@daleco.biz > To: aj...@alumni.iu.edu > CC: a.bovane...@gmail.com; php-general@lists.php.net > Subject: Re: [PHP] Mail Function Problem > > Alice Wei wrote: > >> Hi! > >> You have the following php.ini params:SMTP = smtp.live.com > >> > >>

Re: [PHP] Mail Function Problem

2010-04-12 Thread Kevin Kinsey
Alice Wei wrote: Hi! You have the following php.ini params:SMTP = smtp.live.com smtp_port = 587 live.com not support relay and it requires authentication. Is there an email account that I could try? I thought > most email accounts requires authentication anyway. Well, "therein lies the rub,

Re: [PHP] Inserting into multiple tables

2010-04-12 Thread Gary
d indicate designing the data model in UML or suchlike and > dealing with Objects rather than Tables (then later mapping objects to > tables in order to persist them, if choosing a RDBMS as the persistence > layer). > > It may also be worth noting that an EAV model is the ultimate in >

Re: [PHP] PHP & MYSQL sorting

2010-04-12 Thread tedd
At 8:16 PM -0400 4/11/10, Ernie Kemp wrote: Simple idea I thought. I need a webpage that displays a drop down list of number with a checkbox on the side that when checked will select the database again only in descending order. Small database with maybe 100 records. The user can click the s

RE: [PHP] Mail Function Problem

2010-04-12 Thread Alice Wei
Date: Mon, 12 Apr 2010 15:26:46 +0400 Subject: Re: [PHP] Mail Function Problem From: a.bovane...@gmail.com To: aj...@alumni.iu.edu CC: php-general@lists.php.net Hi! You have the following php.ini params:SMTP = smtp.live.com smtp_port = 587 live.com not support relay and it requires authenticati

Re: [PHP] Mail Function Problem

2010-04-12 Thread Alexey Bovanenko
Hi! You have the following php.ini params: SMTP = smtp.live.com smtp_port = 587 live.com not support relay and it requires authentication. On Mon, Apr 12, 2010 at 6:33 AM, Alice Wei wrote: > > Hi, > > I have an issue here where I see no PHP errors on my mail function usage, > and yet I am not

RE: [PHP] Mail Function Problem

2010-04-12 Thread Alice Wei
> From: peter.e.l...@gmail.com > Date: Mon, 12 Apr 2010 13:09:48 +0200 > Subject: Re: [PHP] Mail Function Problem > To: k...@daleco.biz > CC: aj...@alumni.iu.edu; php-general@lists.php.net > > On 12 April 2010 05:22, Kevin Kinsey wrote: > > > > Thanks to the worldwide brotherhood of crooks know

Re: [PHP] Mail Function Problem

2010-04-12 Thread Peter Lind
On 12 April 2010 05:22, Kevin Kinsey wrote: > > Thanks to the worldwide brotherhood of crooks known as spammers, > sending e-mail these days isn't nearly as easy as PHP makes it look. > You might wanna look into an "errors-to" header to help debug any > problems with sender authorization, bad port