aircooled57 Posted February 2, 2008 Share Posted February 2, 2008 i am really new to the world of php programming and have just started learning the mail function i have setup a html form and configured the action file which i have named send_data.php i have then used the mail function in the send_data.php to send the details filled out in the form to my email adress, which is where i have encountered a problem. when submit button is selected a blank page with the following data appears on screen Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom if anyone could help me with this i would be extremely grateful many thanks louis Quote Link to comment Share on other sites More sharing options...
p2grace Posted February 2, 2008 Share Posted February 2, 2008 What type of server is this being hosted on? Is sendmail enabled? Quote Link to comment Share on other sites More sharing options...
aircooled57 Posted February 2, 2008 Author Share Posted February 2, 2008 my actual website is hosted on a linux server sendmail? Quote Link to comment Share on other sites More sharing options...
frijole Posted February 2, 2008 Share Posted February 2, 2008 you should post the code Quote Link to comment Share on other sites More sharing options...
p2grace Posted February 2, 2008 Share Posted February 2, 2008 Create a page called phpinfo.php and inside of there type this code: <?php phpinfo(); ?> Then do a find for "send" and see if sendmail is configured correctly. Quote Link to comment Share on other sites More sharing options...
aircooled57 Posted February 3, 2008 Author Share Posted February 3, 2008 sendmail_from = no value how do i set this up? Quote Link to comment Share on other sites More sharing options...
trq Posted February 3, 2008 Share Posted February 3, 2008 You hosting provider should have set it up for you unless your using a vps or dedicated server. if so, you will need to install an smtp server and sendmail or an equivelent. Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted February 3, 2008 Share Posted February 3, 2008 sendmail_from can be set in php.ini, a .htaccess file, or in your script. The sendmail_from parameter is basically a default From: address that all scripts running on the server/host use when a script does not provide one in the headers (which is what the second part of the error message states.) Web hosts typically set something like user@hostingcompanydomain.com If your code has a from address in it but you are receiving this error, that would indicate that your code is not doing what you expect. You would need to post your code to get help with it. Quote Link to comment Share on other sites More sharing options...
trq Posted February 3, 2008 Share Posted February 3, 2008 Sorry, I dodn't read the original post properly. I thought we where looking for the sendmail_path directive. 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.