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
Web Design and Hosting Creating sites, scripting, and hosting discussions.

PHP mail(); won't work on XAMPP


Post Reply New Thread Subscribe

 
Thread Tools
r.mistry6

 
Member Since: Jul 13, 2009
Location: UK
Posts: 3
r.mistry6 is on a distinguished road
Mac Specs: OSX 10.5 (Leopard), 4GB RAM, 2.8GHz Core 2 Duo, 360GB HDD - 24" iMac

r.mistry6 is offline
(complete PHP/Server-side n00b here)
Title: PHP mail(); won't work on XAMPP 1.0.1 on OSX 10.5


Hi there

I'm coding PHP on Mac OSX 10.5 (Leopard) with the latest version of XAMPP (1.0.1) and I'm having trouble to see why my mail(); won't work. The code seems valid in every way, and it even loads the success statement which its instructed to echo when the function is complete. My only guess is that there is a setting somewhere in XAMPP that is stopping the mail(); from working.

Any ideas as to what to do? Everything in XAMPP is at its default settings, if that is any help.


Everything is newly installed and at its default including the php.ini file.

here is what the current settings are (php.ini) :

PHP Code:
 // default, untouched.
[mail function]
; For 
Win32 only.
SMTP localhost
smtp_port 
25

; For Win32 only.
;
sendmail_from me@example.com

; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
;
sendmail_path 
I am running this server locally and just want to test my contact form and a newsletter subscription form.


Any ideas as to what I should do?
QUOTE Thanks
Lewwy

 
Lewwy's Avatar
 
Member Since: May 21, 2007
Posts: 198
Lewwy is on a distinguished road
Mac Specs: 15" Macbook Pro, 2.16gz, 2gb RAM || 20" iMac, 2.4gz, 2gb RAM

Lewwy is offline
I am sure your code is fine, and that it probably should work. I do it differently but there are many ways.

Nevertheless, I dont think the mail function works on XAMP whatever way you look at it. I couldnt get it to work on MAMP (and I assume they are basically the same thing) but when I uploaded the script to my webserver, it worked fine.



Try it on a webserver, let me know.
QUOTE Thanks
r.mistry6

 
Member Since: Jul 13, 2009
Location: UK
Posts: 3
r.mistry6 is on a distinguished road
Mac Specs: OSX 10.5 (Leopard), 4GB RAM, 2.8GHz Core 2 Duo, 360GB HDD - 24" iMac

r.mistry6 is offline
Quote:
Originally Posted by Lewwy View Post
I am sure your code is fine, and that it probably should work. I do it differently but there are many ways.

Nevertheless, I dont think the mail function works on XAMP whatever way you look at it. I couldnt get it to work on MAMP (and I assume they are basically the same thing) but when I uploaded the script to my webserver, it worked fine.



Try it on a webserver, let me know.
It works fine on the webserver. I didn't have any doubt with my code, it just would have been nice to have a local mailserver possibility setup on the mac so that I don't have to upload files everytime online just to test out small features such as this one.

thanks
QUOTE Thanks

Post Reply New Thread Subscribe


« Dreamweaver CS3 and Safari 4.0 | Changing Apache's server signature »
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
Thread Starter
Forum
Replies
Last Post
Email wont work with mac mail marcswan Switcher Hangout 4 01-24-2009 04:00 PM
Configuring Gmail IMAP labels/folders on iPhone & Apple Mail 3.0 m021478 OS X - Apps and Games 0 04-11-2008 01:03 PM
Mail account doesn´t work! Hovestadt OS X - Apps and Games 1 04-20-2007 03:36 PM

All times are GMT -4. The time now is 02:10 PM.

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

Welcome to Mac-Forums.com

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?