944,001 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Unsolved
  • Views: 5798
  • PHP RSS
You are currently viewing page 1 of this multi-page discussion thread
Mar 9th, 2007
0

php contact page

Expand Post »
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.
Reputation Points: 10
Solved Threads: 1
Posting Whiz
sam1 is offline Offline
300 posts
since Nov 2004
Mar 10th, 2007
0

Re: php contact page

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
Reputation Points: 10
Solved Threads: 2
Junior Poster in Training
crazynp is offline Offline
58 posts
since Jan 2007
Mar 10th, 2007
0

Re: php contact page

hi,
I am using my own computer, how do i find my smtp server. I tried google but didnt quite get it....
Reputation Points: 10
Solved Threads: 1
Posting Whiz
sam1 is offline Offline
300 posts
since Nov 2004
Mar 10th, 2007
0

Re: php contact page

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.
Reputation Points: 10
Solved Threads: 2
Junior Poster in Training
crazynp is offline Offline
58 posts
since Jan 2007
Mar 10th, 2007
0

Re: php contact page

^^no i am not using WAMP, it is apache with php5. :rolleyes:
Reputation Points: 10
Solved Threads: 1
Posting Whiz
sam1 is offline Offline
300 posts
since Nov 2004
Mar 11th, 2007
0

Re: php contact page

then no poblem just edit php.ini
Last edited by crazynp; Mar 11th, 2007 at 3:00 pm.
Reputation Points: 10
Solved Threads: 2
Junior Poster in Training
crazynp is offline Offline
58 posts
since Jan 2007
Mar 11th, 2007
0

Re: php contact page

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?
Reputation Points: 10
Solved Threads: 1
Posting Whiz
sam1 is offline Offline
300 posts
since Nov 2004
Mar 12th, 2007
0

Re: php contact page

what error do you get?
Reputation Points: 10
Solved Threads: 2
Junior Poster in Training
crazynp is offline Offline
58 posts
since Jan 2007
Mar 12th, 2007
0

Re: php contact page

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.
Reputation Points: 10
Solved Threads: 1
Posting Whiz
sam1 is offline Offline
300 posts
since Nov 2004
Mar 12th, 2007
0

Re: php contact page

Click to Expand / Collapse  Quote originally posted by sam1 ...
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?
Reputation Points: 10
Solved Threads: 2
Junior Poster in Training
crazynp is offline Offline
58 posts
since Jan 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Php site face lift
Next Thread in PHP Forum Timeline: LAMP Installation





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC