First, that "Failed to Connect" message looks like a database failure to
connect message; nothing to do with mail()
Second, are you REALLY trying to send header info at line 256? That's
pretty far down in a program. Usually, those decsions are made within the
first 10 to 20 lines.
So, is line 2
-Original Message-
From: DL Neil <[EMAIL PROTECTED]>
To: Dobromir Velev <[EMAIL PROTECTED]>; [EMAIL PROTECTED]
<[EMAIL PROTECTED]>; [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Monday, October 22, 2001 2:29 PM
Subject: Re: [PHP-DB] How to write errorhandling??
>Luditu
Luditus/Dobromir,
It IS possible to run the mail function on a Win machine - I had a Win2000/IIS(with
its own SMTP stub) box running PHP
mail happily.
Also it is possible to have a Win-with-no-local-SMTP configuration. I have re-jigged
my WinNT portable to run the same
PHP/Apache script connecti
That's correct. I've seen a discussion on dev phorum about embeding SMTP code
in PHP, but as I remember the final decision was that SMTP code will stay
outside of PHP code.
--
Andrey Hristov
Web Developer
Icygen Corporation
BUILDING SOLUTIONS
http://www.icygen.com
On Monday 22 October 2001
Hi,
I see that everybody is looking for the error in the header function - but
the error actually is that Luditus is trying to use mail on a Windows box
with no SMTP server on it.
It is possible to suppress the mail function output using @mail, but it
won't fix the problem - if you want to use mai
:31 AM
// To: [EMAIL PROTECTED]
// Subject: Re: [PHP-DB] How to write errorhandling??
//
//
// Unfortunatelly this doesn't work at all. Same error. Any other ideas?
//
// Cheers
//
// Luditus
//
//
// "Attila Strauss" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
// 01102
Hello,
> Warning: Cannot add header information - headers already sent by (output
> started at
> e:\projects\globosapiens\07_production\actual\account\include\user.php:256)
> in e:\projects\globosapiens\07_production\actual\account\include\user.php
> on line 260
> Where is the problem??? I can'
If you use the at symbol to supress the error message from being
printed, the if() statement will still recognize an error has
occurred... So, try this:
if (@mail($email,$subject_confirm_account, $message_confirm_account,
$from_confirm_account)) {
HEADER("Location:index.php?fuseaction=t
"Attila Strauss" <[EMAIL PROTECTED]> wrote in message
01102113081306.00694@pluto">news:01102113081306.00694@pluto...
> hi
>
> do an
>
> exit;
>
> after the header();
>
> cu
> attila
>
>
>
> On Sunday 21 October 2001 12:45, Luditus wrote:
> > Hi Fokes,
> >
> > I would like to send an mail via the
Unfortunatelly this doesn't work at all. Same error. Any other ideas?
Cheers
Luditus
"Attila Strauss" <[EMAIL PROTECTED]> schrieb im Newsbeitrag
01102113081306.00694@pluto">news:01102113081306.00694@pluto...
> hi
>
> do an
>
> exit;
>
> after the header();
>
> cu
> attila
>
>
>
> On Sunday 21
On Sunday 21 October 2001 06:45, Luditus wrote:
> Hi Fokes,
>
> I would like to send an mail via the mail function.
>
> If the mail failes I would like to redirect to an errorpage.
> Currently my code looks like this:
>
> if ( mail($email,$subject_confirm_account,
> $message_confirm_account, $fro
hi
do an
exit;
after the header();
cu
attila
On Sunday 21 October 2001 12:45, Luditus wrote:
> Hi Fokes,
>
> I would like to send an mail via the mail function.
>
> If the mail failes I would like to redirect to an errorpage. Currently my
> code looks like this:
>
> if ( mail($email,$subje
12 matches
Mail list logo