Enabling php5 mail function on local Apache2 server
lists at avi.co
Thu Aug 25 08:44:38 UTC 2011
> I've successfully installed the Apache2 server and php5 on my Lucid
> Lynx machine. For development and testing purposes I'm running php
> web pages on localhost and everything works OK except the mail()
> function - ie when sending a 'form' from a web page on localhost
> there is no error message but no mail is actually sent.
Mail should work out of the box, if I remember correctly. Is the
machine set up to send mail outside of PHP?
How are you testing for the sending of mail? If you're checking by
seeing whether it's been delivered to the destination address, it'd be
worth making sure that the way you're sending doesn't fall foul of
whatever anti-spam measures the destination server has in place (like,
for instance, being on a residential ADSL block).
More information about the ubuntu-users