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 Link to comment https://forums.phpfreaks.com/topic/89093-warning-mail-functionmail-sendmail_from-not-set-in-phpini-or-custom/ 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? Link to comment https://forums.phpfreaks.com/topic/89093-warning-mail-functionmail-sendmail_from-not-set-in-phpini-or-custom/#findComment-456319 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? Link to comment https://forums.phpfreaks.com/topic/89093-warning-mail-functionmail-sendmail_from-not-set-in-phpini-or-custom/#findComment-456323 Share on other sites More sharing options...
frijole Posted February 2, 2008 Share Posted February 2, 2008 you should post the code Link to comment https://forums.phpfreaks.com/topic/89093-warning-mail-functionmail-sendmail_from-not-set-in-phpini-or-custom/#findComment-456326 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. Link to comment https://forums.phpfreaks.com/topic/89093-warning-mail-functionmail-sendmail_from-not-set-in-phpini-or-custom/#findComment-456328 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? Link to comment https://forums.phpfreaks.com/topic/89093-warning-mail-functionmail-sendmail_from-not-set-in-phpini-or-custom/#findComment-456786 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. Link to comment https://forums.phpfreaks.com/topic/89093-warning-mail-functionmail-sendmail_from-not-set-in-phpini-or-custom/#findComment-456789 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 [email protected] 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. Link to comment https://forums.phpfreaks.com/topic/89093-warning-mail-functionmail-sendmail_from-not-set-in-phpini-or-custom/#findComment-456808 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. Link to comment https://forums.phpfreaks.com/topic/89093-warning-mail-functionmail-sendmail_from-not-set-in-phpini-or-custom/#findComment-456814 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.