July 13, 200917 yr (hopes this is the right section!) 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.
July 13, 200917 yr Author You need to set your SMTP details in your php.ini which settings would I change? Here are the settings I currently have showing with phpinfo(); in the following syntax: [directive] [local value] [master value] sendmail_from no value no value sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i serialize_precision 100 100 short_open_tag On On SMTP localhost localhost smtp_port 25 25
July 13, 200917 yr Author "sendmail_from" and "smtp" the php.ini file states that the details I should be changing are for windows users only: [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 = and the port if your smtp server runs on a none default port! I'm running this server locally. what address/port would that be, if you know? -- sorry for all the questions, complete PHP n00b here!
July 13, 200917 yr Sorry I didn't read properly... I'm not too sure in a mac environment! i'd consult google but I definately think its because your SMTP isn't set up
Create an account or sign in to comment