Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

XAMPP and PHP mail() function

Featured Replies

(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.

  • 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

and the port if your smtp server runs on a none default port!

  • 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!

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.