setting up xampp to check Php 'mail' function

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

setting up xampp to check Php 'mail' function

Postby jmdirc » 25. February 2008 03:13

I posted a similar topic but erased it for the sake of clarity.

I want to test my php 'mail' function; but, I have no idea how to set up the mail so that xampp/php will send the form to my email address. Any ideas how to put this together?
User avatar
jmdirc
 
Posts: 154
Joined: 10. February 2008 22:44

bump

Postby jmdirc » 29. March 2008 18:03

Someone has got to know how to go about setting up the mail.

I can get the print/echo but still no luck with the mail.

Will I have to install a mail server to get this working or is there some way to access something like my gmail account?

I've put entries in the php.ini but still it isn't working.

Any help would be greatly appreciated.
User avatar
jmdirc
 
Posts: 154
Joined: 10. February 2008 22:44

Postby Nobbie » 30. March 2008 00:34

>Will I have to install a mail server to get this working

Yes.

>or is there some way to access something like my gmail account?

Yes and no: it works only (and really only) if your SMTP account does not require userid/password for sending emails. But most (or all) email providers do not offer such "open relays".

You should download the phpmailerclass from sourceforge, which is a powerfull email class that solves all problems that come with the really "poor" mail()-function of PHP. See http://phpmailer.codeworxtech.com/
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04

Postby jmdirc » 30. March 2008 04:58

OK. Do you know of any open source mail servers that are fairly easy to install?

I've looked at POSTFIX but that is way over my head. I also found a few free demos, but they only last a month.
User avatar
jmdirc
 
Posts: 154
Joined: 10. February 2008 22:44

Postby Wiedmann » 30. March 2008 12:46

OK. Do you know of any open source mail servers that are fairly easy to install?

"sendmail" is allready part of your os. Just configure it. ("mail" form PHP is using sendmail)
Wiedmann
AF Moderator
 
Posts: 17102
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby jmdirc » 30. March 2008 16:05

If sendmail is on this computer, it is hiding really well.
User avatar
jmdirc
 
Posts: 154
Joined: 10. February 2008 22:44


Return to XAMPP for macOS

Who is online

Users browsing this forum: No registered users and 25 guests