Free Web Hosting Forum
Go Back   Free Web Hosting Forum > Website Building > Web Programming
Reload this Page php mail script won't send mail (anymore)
Reply
 
Thread Tools Display Modes
(#1 (permalink))
Old
Junior Member
MrFinMan is on a distinguished road
 
Posts: 4
Join Date: Feb 2009
Default php mail script won't send mail (anymore) - 02-17-2009, 10:18 AM

Hi!

I'm trying to just test the mail sending with a simple php script:

Mail.php:

<?php
$to = "pionsamwise@gmail.com";
$subject = "Hi";
$message = "Hello";
$from = "pionsamwise@mrfinman.net78.net";
$headers = "From: $from";
$happy = mail($to,$subject,$message,$headers);
echo "Trying to send mail...";
if ($happy)
{
echo "Really happy!\n";
echo $to;
echo "\n";
echo $from;
echo "\n";
echo $subject;
echo "\n";
echo $message;
echo "\n";
}
else
{
echo "Not happy!\n";
echo $to;
echo "\n";
echo $from;
echo "\n";
echo $subject;
echo "\n";
echo $message;
echo "\n";
}
?>

The return is very non happy.. No mails are getting to their destination and they are not in junk mail or anywhere.. What makes this really weird is that I have successfully sent 2 mails in some point but never again. Can somebody help me... I don't know what's going on.

I have tried different destination emails(gmail, hotmail, luukku) and different sender emails

First I thought that the mail sending is blocked but after 2 successful mails that doesn't seem possible...

I'm stuck and I need help

Last edited by MrFinMan; 02-17-2009 at 10:28 AM.
Reply With Quote
Sponsored Links
(#2 (permalink))
Old
Junior Member
MrFinMan is on a distinguished road
 
Posts: 4
Join Date: Feb 2009
Default Even more confused now... please help - 02-17-2009, 02:22 PM

Well now I've sent numerous mails with this:
BUT it won't work all the time....

1) sometimes it works like it should : mail gets through and Really happy is shown
2) sometimes it doesn't : mail doesn't get through and Really happy is shown
3) sometimes it fails: mail doesn't get through and Not Happy is shown

What the f*** is going on ???

I'm trying to send maybe 1 mail per minute just to be on the safe side of the possible 20mails/minute rule .... but I'm not getting any reliable result with this thing... The same script doing different things..

Please help

this is the php script now:

<?php
$to = "pionsamwise@hotmail.com";
$subject = "Testi Maili";
$message = "Moro! Testailen vain tätä php scriptiä";
$from = $_REQUEST['Email'];
$headers = "From: $from";
$happy = mail($to,$subject,$message,$headers);
echo "Mail Sent.";
if ($happy)
{
echo "Really happy!\n";
echo $to;
echo "\n";
echo $from;
}
else
{
echo "Not happy!\n";
echo $to;
echo "\n";
echo $from;
}
?>
Reply With Quote
(#3 (permalink))
Old
James's Avatar
Senior Member
James is on a distinguished road
 
Posts: 889
Join Date: Feb 2009
Location: Death Mountain
Default 02-17-2009, 02:24 PM

http://www.000webhost.com/includes/tos.php

3. No mass mailers / spammers (account will be automatically suspended if you will try to send mass mail), so if your software supports such feature, disable it right now.

No mail scripts allowed - I sent mail to 10 people via my forums and got banned


Premium, trustworthy hosting without administrator reviews and verification measures - Official cPanel control panel and live support? Unlimited resources*?
$2.00 per month for quality hosting!
www.loophost.net
Reply With Quote
(#4 (permalink))
Old
Junior Member
MrFinMan is on a distinguished road
 
Posts: 4
Join Date: Feb 2009
Default no mass mailers - 02-17-2009, 03:06 PM

I just have a page where you can order something and it sends your order by email to my email(any of them)...

I wouldn't consider 1 mail/minute to be mass mail and even that is for testing only ... on the finished page it might be 1 mail/week

And I read somewhere that there's 20mail/minute limit and I don't come even close that in any way

And everywhere on the site there are some Free php, sendmail, do whatever you want type of happy little frases... So I would think that this type of page is totally supported. And the fact that it works (some of the time) means that it is.

And the problem isn't that I get banned or something... the problem is that it works sometimes and sometimes it doesn't even though it might say it does

And I'm losing my mind with this one ... there's no logical way this is working

So if anyone can help me please do ...
Reply With Quote
(#5 (permalink))
Old
James's Avatar
Senior Member
James is on a distinguished road
 
Posts: 889
Join Date: Feb 2009
Location: Death Mountain
Default 02-17-2009, 03:26 PM

I don't know :l

Wheres your website located?


Premium, trustworthy hosting without administrator reviews and verification measures - Official cPanel control panel and live support? Unlimited resources*?
$2.00 per month for quality hosting!
www.loophost.net
Reply With Quote
(#6 (permalink))
Old
Junior Member
MrFinMan is on a distinguished road
 
Posts: 4
Join Date: Feb 2009
Default 02-17-2009, 03:29 PM

here on server11

at the moment it's actually working and for a while now... I'm just waiting for it to tilt again
Reply With Quote
(#7 (permalink))
Old
James's Avatar
Senior Member
James is on a distinguished road
 
Posts: 889
Join Date: Feb 2009
Location: Death Mountain
Default 02-17-2009, 03:38 PM

Okay then - what is your website called?
http://yourwebsite.ext.ext

I got deleted for 10 emails in one day


Premium, trustworthy hosting without administrator reviews and verification measures - Official cPanel control panel and live support? Unlimited resources*?
$2.00 per month for quality hosting!
www.loophost.net
Reply With Quote
(#8 (permalink))
Old
saintfalcon's Avatar
Member
saintfalcon is on a distinguished road
 
Posts: 48
Join Date: Dec 2008
Location: Surabaya, Indonesia
Default 03-11-2009, 09:33 AM

i'm in server9

http://saintfalcon.site88.net

report should be saying my mail sent to me,
but no email delivered :|



..:: Live your life alive & never lied to your hearT ::..

check out & give comments please... thanks

http://www.gsplasa.biz

Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.2
vBulletin Skin developed by: vBStyles.com