Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Nov 25, 2007, 03:56 AM   #1
sebf
macrumors member
 
Join Date: Oct 2006
Location: UK
PHP Mail

I am currently trying to get Leopard's web sharing/PHP sending email, but I am not sure how to configure PHP's SMTP. Currently when I use PHP's mail() function it seems successful, but I don't actually receive the email.

The only reference for setting up the SMTP in the php.ini seems to be for Windows only:
Code:
[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 = /usr/sbin/sendmail -t -i
How do I configure PHP to use my ISP's SMTP server?

Thanks for any help.
sebf is offline   0 Reply With Quote
Old Nov 25, 2007, 01:03 PM   #2
kainjow
Moderator emeritus
 
kainjow's Avatar
 
Join Date: Jun 2000
PHP's mail() function will return true or false if it was sent correctly (but not necessarily if it was received). You could at least check this value to make sure it's being sent.
kainjow is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
PHP Mail or Swift Mail and Google Apps RoboCop001 Web Design and Development 8 Jun 22, 2010 02:10 PM
Yet another PHP mail complaint Not Available Web Design and Development 2 Jul 30, 2009 04:54 AM
PHP mail ... Not working to own domain sfh Web Design and Development 2 Mar 15, 2009 04:57 AM
Help with php mail funciton.. Quboid Mac Programming 1 Sep 1, 2008 04:32 AM
PHP mail - working only slightly. SpamHaus? toddburch Web Design and Development 1 Aug 17, 2007 03:11 PM


All times are GMT -5. The time now is 08:02 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC