[56K WARN] Newbie At Mailing Via PHP?
Moderator: General Moderators
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?
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?
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";
}- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Code: Select all
if (!@mail())
exit('Failed');
echo 'succesful';
Last edited by John Cartwright on Mon Feb 28, 2005 12:48 pm, edited 1 time in total.
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
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
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