Page 2 of 2
Posted: Mon Feb 28, 2005 11:57 am
by guest
posted messages (on other subjects) there in the past.
never got a reply.
Posted: Mon Feb 28, 2005 11:59 am
by feyd
then you may want to look at setting it up differently or using a different server set up all together .. as it appears no one here runs xampp, or the ones that may run it haven't had these problems...
Posted: Mon Feb 28, 2005 12:25 pm
by guest
xampp, comes with aload of good features, perl, python, coccon and other php goodies.
And it means i do not have to doit the longway round
If I Cant Get It Fixed, Then I Will Leave It Trying, But If The Mail Send Is Not Successfull, I Will Provide A MailTo Link
--------------------------------------------------------------
P.S : Is There Any Way, I Can Get It To Hide The Error Message - If There Is An Error In The Sending Process. But Continue Excution Of The Rest Of The Page?
Posted: Mon Feb 28, 2005 12:36 pm
by feyd
the "error" you are getting is merely a warning. You can hide the warning by using an error control operator (@) in front of the mail() call. Note though, this will suppress all errors for that function from displaying.
Execution does not stop on a warning.
Posted: Mon Feb 28, 2005 12:45 pm
by guest
so would this work
Code: Select all
$m = @mail(); // NOT INSERTED VARIABLES AS THIS IS AN EXAMPLE
if ($m) {
echo "Mail Was Sent";
}
else {
echo "Error Sending Mail, Click Here To Open Your Email Editor";
}
Posted: Mon Feb 28, 2005 12:47 pm
by John Cartwright
Code: Select all
if (!@mail())
exit('Failed');
echo 'succesful';
I think is a better approach at it..
Posted: Mon Feb 28, 2005 12:47 pm
by feyd
I'm not answering something that should only take you a few seconds to test..

Posted: Mon Feb 28, 2005 12:51 pm
by guest
what i wanted to know, is would that return true if it worked or false if the mail wasn't sent.
I could not say that cause for me, it would always return false
Posted: Mon Feb 28, 2005 4:30 pm
by Chris Corbyn
Do lycos actually provide your internet access?
SMTP relaying restrictions mean that the only way you can send emails from localhost is via the SMTP provided by your ISP.
So even though I don't use the email inbox provided by NTLWorld which is my ISP I still send all my emails through their SMTP server smtp.ntlworld.com even if they are from a @mydomain.com address.
If lycos is your ISP then that's all good and just ignore me
Seems to be quite a few ppl struggling with the ini configuration for the mail() function at the moment
