junebug8 Posted June 27, 2007 Share Posted June 27, 2007 I'm getting this error "Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in D:\Wild\www\envirotechslc.com\survey\tempFiles\form1658\processor.php on line 26" when trying to email information from on online form. Here is the code from the PHP file "<?php $where_form_is="http://".$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),"/")); // Checkbox handling $field_5_opts = $_POST['field_5'][0].",". $_POST['field_5'][1].",". $_POST['field_5'][2].",". $_POST['field_5'][3]; mail("[email protected]","phpFormGenerator - Form submission","Form data: How do you rate the helpfulness of Weir Specialty Pumps' employees?: " . $_POST['field_1'] . " How do we perform when it comes to fulfulling quote requests?: " . $_POST['field_2'] . " Please rate the quality of our products as you receive them?: " . $_POST['field_3'] . " Do the responses and actions of your Regional Sales Manager match your expectations?: " . $_POST['field_4'] . " In what way could our sales support most improve? (Check all that apply.): $field_5_opts : " . $_POST['field_6'] . " Name:: " . $_POST['field_7'] . " Company:: " . $_POST['field_8'] . " E-mail:: " . $_POST['field_9'] . " Comments:: " . $_POST['field_10'] . " powered by phpFormGenerator. "); include("confirm.html"); ?> I know this is probably really easy for all of you experts. Can somebody please help!! Thanks in advance. Link to comment https://forums.phpfreaks.com/topic/57426-help-pleasewarning-mail-functionmail-sendmail_from-not-set-in-phpini/ Share on other sites More sharing options...
aim25 Posted June 27, 2007 Share Posted June 27, 2007 Well im no expert at this stuff, but im pretty sure its becuase you havent set the mail function properly, like the STMP ports or what ever. http://www.sitepoint.com/article/advanced-email-php Link to comment https://forums.phpfreaks.com/topic/57426-help-pleasewarning-mail-functionmail-sendmail_from-not-set-in-phpini/#findComment-284107 Share on other sites More sharing options...
junebug8 Posted June 27, 2007 Author Share Posted June 27, 2007 I'm still having troubles getting this going. Below is the mail function section of the php.ini file. What am I doing wrong? [mail function] ; For Win32 only. SMTP = localhost smtp_port = 25 ; For Win32 only. sendmail_from = [email protected] ; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). ;sendmail_path = ; Force the addition of the specified parameters to be passed as extra parameters ; to the sendmail binary. These parameters will always replace the value of ; the 5th parameter to mail(), even in safe mode. ;mail.force_extra_parameters = Link to comment https://forums.phpfreaks.com/topic/57426-help-pleasewarning-mail-functionmail-sendmail_from-not-set-in-phpini/#findComment-284159 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.