New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

Start a Discussion

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

OS 10.4 - PHP email form won't work

Post Reply New Thread Subscribe

Thread Tools

Member Since: Jul 15, 2007
Location: Banbury, Oxfordshire
Posts: 2
reholmes is on a distinguished road
Mac Specs: MacMini pre Intel :(

reholmes is offline

I am a relatively new web developer and have set up my macmini to run a stand alone coldfusion server and also a PHP/MySQL testing site. I've been using PHP ultimately because I couldn't get coldfusion to recognise any sql datacases. Anyway I've got the part in my book where I send an email from a form and it went through the parts of the script below:

$to = "";
$subject = "This is the message body";
$body = "This is the message subject";
$headers = "From:\n";

So with this entered when the page loads it should send an email to the email address I enter, unfortunately it didn't. I used the completed file they send for you to refer to if you get stuck and that didn't work either. There were comments saying firewalls or your isp may block it etc so I thought I'd test it with coldfusion and it worked, removing that theory.

After a lot of googling and playing around with sendmail and postfix (sendmail would not start?, so have used postfix) I have managed to send an email from Mail using localhost as the SMTP. In php.ini I have set the sendmail_path to = /usr/sbin/postfix and checked that php recognises this path using phpinfo. I have therefore concluded that php recognises postfix and postfix can send mail so when I go back to the original point and load the page with the php script it should work - It didn't!!

How do I get php to recognise postfix or an SMTP setting that I can use for testing php scripts with? I also set a in the main.c file of postfix but this didn't make a difference.

Having spent my weekend dispairing over this I decided to tackle the original problem I had with coldfusion, causing me to learn php instead of coldfusion, and have solved that problem so if I get no solution to this I will start the book again using coldfusion tags!

Any advice gratefully received.

QUOTE Thanks

Post Reply New Thread Subscribe

« Expose and keyboard shortcuts stop working | HTTP Mail Leopard »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
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 On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Starter
Last Post
email problems bondibilly Schweb's Lounge 2 12-29-2006 05:45 AM
Questions from probable switcher on email, treo, etc RT21093 Switcher Hangout 7 12-24-2006 01:21 AM
Php vtupser Web Design and Hosting 5 02-16-2005 03:36 AM
PHP form with html? design2 Web Design and Hosting 19 05-18-2004 05:08 AM
PHP help urble Web Design and Hosting 1 08-11-2003 10:22 AM

All times are GMT -4. The time now is 07:59 AM.

Powered by vBulletin
Copyright ©2000 - 2015, Jelsoft Enterprises Ltd.

Welcome to

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!

(4 digit year)

Already a member?