php contact page

Reply

Join Date: Nov 2004
Posts: 257
Reputation: sam1 is an unknown quantity at this point 
Solved Threads: 1
sam1's Avatar
sam1 sam1 is offline Offline
Posting Whiz in Training

php contact page

 
0
  #1
Mar 9th, 2007
hi,

I am creating a contact us page with php and html. everything works except for the actual receiving of the email. I am using php and apache on localhost but i am connected to internet.

What i am trying to ask is: is it possible to send email using the localhost or not?

thanks
Last edited by sam1; Mar 9th, 2007 at 2:29 pm.
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 58
Reputation: crazynp is an unknown quantity at this point 
Solved Threads: 2
crazynp crazynp is offline Offline
Junior Poster in Training

Re: php contact page

 
0
  #2
Mar 10th, 2007
you have to configure smtp settings in php.ini file. If you place your file in the webserver then it is probably already configured.if you are using it in ur coimputer configure the php.ini file as:[mail function]; For Win32 only.SMTP = smtp.yourisp.com
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 257
Reputation: sam1 is an unknown quantity at this point 
Solved Threads: 1
sam1's Avatar
sam1 sam1 is offline Offline
Posting Whiz in Training

Re: php contact page

 
0
  #3
Mar 10th, 2007
hi,
I am using my own computer, how do i find my smtp server. I tried google but didnt quite get it....
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 58
Reputation: crazynp is an unknown quantity at this point 
Solved Threads: 2
crazynp crazynp is offline Offline
Junior Poster in Training

Re: php contact page

 
0
  #4
Mar 10th, 2007
If you are using WAMP then goto config files and then goto php.ini file and edit it with above given hints. It worked for me.
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 257
Reputation: sam1 is an unknown quantity at this point 
Solved Threads: 1
sam1's Avatar
sam1 sam1 is offline Offline
Posting Whiz in Training

Re: php contact page

 
0
  #5
Mar 10th, 2007
^^no i am not using WAMP, it is apache with php5. :rolleyes:
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 58
Reputation: crazynp is an unknown quantity at this point 
Solved Threads: 2
crazynp crazynp is offline Offline
Junior Poster in Training

Re: php contact page

 
0
  #6
Mar 11th, 2007
then no poblem just edit php.ini
Last edited by crazynp; Mar 11th, 2007 at 3:00 pm.
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 257
Reputation: sam1 is an unknown quantity at this point 
Solved Threads: 1
sam1's Avatar
sam1 sam1 is offline Offline
Posting Whiz in Training

Re: php contact page

 
0
  #7
Mar 11th, 2007
how would i do it, I tried putting in mail function mail.blueyonder.co.uk as i am using blueyonder broadband and my email address for the email. but i didnt get any results..............is that correct?
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 58
Reputation: crazynp is an unknown quantity at this point 
Solved Threads: 2
crazynp crazynp is offline Offline
Junior Poster in Training

Re: php contact page

 
0
  #8
Mar 12th, 2007
what error do you get?
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 257
Reputation: sam1 is an unknown quantity at this point 
Solved Threads: 1
sam1's Avatar
sam1 sam1 is offline Offline
Posting Whiz in Training

Re: php contact page

 
0
  #9
Mar 12th, 2007
As i said i put blueyonder stmp and my gmail account there.... the server runs fine, but when i send the email i dont receive it in my gmail account.
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 58
Reputation: crazynp is an unknown quantity at this point 
Solved Threads: 2
crazynp crazynp is offline Offline
Junior Poster in Training

Re: php contact page

 
0
  #10
Mar 12th, 2007
Originally Posted by sam1 View Post
As i said i put blueyonder stmp and my gmail account there.... the server runs fine, but when i send the email i dont receive it in my gmail account.
You dont need to put the email address in php.ini. Changing the smtp server may work fine. just try to telnet your smtp server on port 25 or 26 and if it is connected then there is no problem. You may also want to debug the code,. Can you post the code here?
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the PHP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC