Page 1 of 1

Cannot use mail() function of PHP

PostPosted: 19. June 2009 12:32
by psicloone
I have installed LAMPP on UBUNTU but I can`t send emails using the php mail() function:

mail('whatever@gmail.com', 'My Subject', $message);

Any help?

Re: Cannot use mail() function of PHP

PostPosted: 28. June 2009 18:04
by utan
You need to install a program like "postfix" and if you are in a dynamic line you would have to setup a smarthost, like from your ISP or perhaps gmail, which its the one i am using......
google it as postfix smarthost.... later.