Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
php tutorial in this site
Old 07-08-2006, 04:37 AM php tutorial in this site
Skilled Talker

Posts: 60
Name: tami
Trades: 0
i am new to php and i followed the php tutorial on this site, what could be the reason that it is not working?
a few facts:
php is working on my server- i already checked
i tried the part that is talking about Creating The Form To Mail Script
and i cant think of anything taht i did wrang....

pizza is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-08-2006, 06:21 AM Re: php tutorial in this site
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
define "not working"
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-09-2006, 01:44 AM Re: php tutorial in this site
Skilled Talker

Posts: 60
Name: tami
Trades: 0
by not working i mean that inorder to test it i put my email asress to see if the mail was sent and i never got any mail . this is the part in the code:
PHP Code:
if(mail($to,"Comments From Your Site",$message,"From: $email\n")) {
echo 
"Thanks for your comments.";
} else {
echo 
"There was a problem sending the mail. Please check that you filled in the form correctly.";

so i recieve the reply :"Thanks for your comments.
but thats it.....
pizza is offline
Reply With Quote
View Public Profile
 
Old 07-09-2006, 04:26 AM Re: php tutorial in this site
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
1/ Where is/was the tutorial you followed ?

2/ are you sending to a aol/hotmail/yahoo/gmail address ? if so check your junk mail folder

3/ was this on your machine or a webserver with a SMTP server set up in php.ini ?

there are so many things that can happen it's almost impossible to diagnose with more input from you.

BTW The fact that you received a "Thanks for ... " message after sending points towards a issue with you receiving mail NOT a sending issue.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-09-2006, 05:22 AM Re: php tutorial in this site
Skilled Talker

Posts: 60
Name: tami
Trades: 0
the tutorial is here http://www.freewebmasterhelp.com/tutorials/php

i am sending to a gmail address

about the SMPT there is no mention about it in the tutorial so maybe that is the problem , i didnt change or add anything i just checked that my server , where i put the files, is working with php....
pizza is offline
Reply With Quote
View Public Profile
 
Old 07-09-2006, 05:40 AM Re: php tutorial in this site
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,385
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
So the tutorial isn't on this site then

you need to check;

if the mail is being junked at gmail and with your host for the mail server settings if it isn't.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 07-09-2006, 07:22 AM Re: php tutorial in this site
Skilled Talker

Posts: 60
Name: tami
Trades: 0
that site refered to this place. that is why i thought it is the same place....
any way i thoght it was a good tutorial except it is not working.....
the code is
PHP Code:
$to "mymail@gmail.com";
$subject "something";
$body "something";
$headers "From: webmaster@gowansnet.com\n";
mail($to,$subject,$body,$headers); 
i tried other mails not only my gmail and it isnt working so i think that a there is something missing maybe it has something to do with something i read in another thread about php.ini i am talikung about this thread
pizza is offline
Reply With Quote
View Public Profile
 
Old 07-10-2006, 03:43 AM Re: php tutorial in this site
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
mail() always return true if the sendmail or any similar software is configured on the server and it received your message and put it into the queue. Thus it is the problem either of software outside php or of the receiving server. I can predict that it is more probably problem with your sendmail, because if relaying is prohibited and your mail server does not serve gowansnet.com and the mailbox webmaster is not physically set up on your server then your message simply won't be sent to anywhere. Moreover it will be returned to me@localhost instead of your mailbox. Try adding "Return-path: your-mailbox@yourserver" and "Reply-to: your-mailbox@yourserver" headers also.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

And don't forget to give me talkupation!
mtishetsky is offline
Reply With Quote
View Public Profile Visit mtishetsky's homepage!
 
Reply     « Reply to php tutorial in this site
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 3.07237 seconds with 12 queries