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 : [email protected]") but it doesnt send. What else should i do to make it work? Thank you Link to comment https://forums.phpfreaks.com/topic/132208-mail-function/ 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? Link to comment https://forums.phpfreaks.com/topic/132208-mail-function/#findComment-687233 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. [email protected] wont work but [email protected] 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. Link to comment https://forums.phpfreaks.com/topic/132208-mail-function/#findComment-687255 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.