Jump to content

Help PLEASE..Warning: mail() [function.mail]: "sendmail_from" not set in php.ini


junebug8

Recommended Posts

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.  ;D Can somebody please help!!

Thanks in advance.

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 =

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.