Contact Form Processing Products - for all your needs

FormMail • Form Encryption • Hosted Forms

INI_SET_FROM Setting

This page documents the INI_SET_FROM configuration setting in FormMail.

Type Of Setting

INI_SET_FROM is a LEAVE setting, which means...

LEAVE : you can change this setting if you really need to and know what you're doing, but we recommend that you leave this setting unchanged.

Note that this setting only has an effect on servers running Windows.

Précis

Controls use of "sendmail_from" PHP feature.

Description

INI_SET_FROM controls whether FormMail attempts to set the "sendmail_from" feature in the PHP configuration. This PHP feature only applies to Windows servers. You can find this feature inside the "php.ini" file. On most servers it will be set correctly and you don't need to change it. However, some servers have this set incorrectly in php.ini and this prevents PHP scripts from sending mail!

Set INI_SET_FROM to true to request FormMail to set this PHP feature to the sender of the emails it sends. You may also need to set $FROM_USER in FormMail's configuration section (for alert messages) and use the FromAddr feature in "mail_options" in your forms (for sending form results). However, test each case individually.

INI_SET_FROM sets the sender according to the email logic description. This means that if you need INI_SET_FROM set to true, then you must also either require the "email" field on a form or specify the FromAddr in the "mail_options" on the form.

Review the email logic description for full details.

Default Value

From version 9 onwards:

$INI_SET_FROM = false;

Before version 9:

define("INI_SET_FROM",false);

Examples

From version 9 onwards:

$INI_SET_FROM = true;

Before version 9:

define("INI_SET_FROM",true);

See Also

 
Close