aliento Posted November 10, 2008 Share Posted November 10, 2008 Hello, The mail function doesnt work at my server! Is this possible? Have you heard anything like this again? I use the simpliest mai($to,$text1,$text2,"From : asd@lsd.com") but it doesnt send. What else should i do to make it work? Thank you Quote Link to comment Share on other sites More sharing options...
flyhoney Posted November 10, 2008 Share Posted November 10, 2008 Your PHP installation is probably not setup to use it. To use the mail() function, PHP needs access to sendmail (http://en.wikipedia.org/wiki/Sendmail). Are you sure your server has sendmail and that PHP is configured to use it? Quote Link to comment Share on other sites More sharing options...
DeanWhitehouse Posted November 10, 2008 Share Posted November 10, 2008 Some host's do disable the mail feature to some hosting plans, also you haven't shown us what is in the variables as something there might be causing a problem. Also my host only allows emails to be sent from an email address registered with the server, e.g. user@hotmail.com wont work but user@mysite.com will Some host's require (if not all) that a real from email address is used. Some email clients also block certain emails with incorrect/dodgy headers. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.