Email

$g_administrator_email

The administrator's e-mail address. This is mainly prompted to the user in case of errors that might require the intervention of the system administrator. For example, SQL errors. [email protected]

$g_webmaster_email

The webmaster's e-mail address. This address is displayed in the bottom of all Mantis pages. [email protected]

$g_from_email

The email address to be used as the source of all emails sent by Mantis. [email protected]

$g_return_path_email

Email address to receive bounced emails.

$g_enable_email_notification

Set to ON to enable e-mail notifications, OFF to disable them. Default is ON. Note that disabling email notifications has no effect on emails generated as part of the user signup process.

$g_default_notify_flags

Associated with each action a list of flags to control who should be notified.The default will be used if the action is not included in $g_notify_flags orif the flag is not included in the specific action definition. The list of actions include: new, assigned, resolved, bugnote, reopened, closed, deleted, feedback.The default is: $g_default_notify_flags = array('reporter' => ON, 'handler' => ON, 'monitor' => ON, 'bugnotes' => ON, 'threshold_min' => NOBODY, 'threshold_max' => NOBODY); threshold_min and threshold_max are used to send messages to all members of the project whose status is greater than or equal to "threshold_min" and less than or equal to "threshold_max". Sending messages to everyone would set "threshold_min" to ANYBODY and "threshold_max to "NOBODY". To send to all DEVELOPERS and above (as 0.17.5), use DEVELOPER and NOBODY respectively.

$g_notify_flags

Defines the notification flags that are different from the defaults that are defined in $g_default_notify_flags. The following code overrides the default by disabling notifications to bugnote authors and users monitoring the bug on submitting a new bug: $g_notify_flags['new'] = array('bugnotes' => OFF, 'monitor' => OFF); Available actions include:

  • 'new': a new bug has been added

  • 'reopened': the bug has been reopened

  • 'deleted': a bug has been deleted

  • 'owner': the bug has been assigned a new owner

  • 'bugnote': a bugnote has been added to a bug

  • 'sponsor': the sponsorship for the bug has changed (added, deleted or updated)

  • 'relation': a relationship for the bug has changed (added, deleted or updated)

In addition, an action can match the bug status in $g_status_enum_string. Note that spaces in the string are replaced with underscores ('_') in creating the action. Thus, using the defaults, 'feedback' would be a valid action.

$g_email_receive_own

This defines whether users should receive emails for their own actions. This option is defaulted to OFF, hence, users do not receive email notification for their own actions. This can be a source for confusions for users upgrading from Mantis 0.17.x versions, since in these versions users used to get notified of their own actions.

$g_validate_email

Set to OFF to disable email checking. Default is ON.

$g_check_mx_record

Set to OFF to disable email checking. Default is OFF.

$g_allow_blank_email

If ON, allows the user to omit an email address field. If you allow users to create their own accounts, they must specify an email at that point, no matter what the value of this option is. Otherwise they wouldn't get their passwords.

$g_limit_email_domain

Only allow and send email to addresses in the given domain. This is useful as a security feature and it is also useful in cases like Sourceforge where its servers are only limited to send emails to SourceForge email addresses in order to avoid spam. $g_limit_email_domain = 'users.sourceforge.net';

$g_show_user_email_threshold

This specifies the access level that is needed to have user names hyperlinked with mailto: links. The default value is NOBODY, hence, even administrators won't have this feature enabled.

$g_mail_priority

If use_x_priority is set to ON, what should the value be? Urgent = 1, Not Urgent = 5, Disable = 0 . Default is 3 Some MTAs interpret X-Priority = 0 to mean 'Very Urgent'

$g_phpMailer_method

Select the method to mail by: 0 - mail(), 1 - sendmail 2 - SMTP. Default is 0.

$g_smtp_host

This option allows you to use a remote SMTP host. Must use the phpMailer script. Name of smtp host, needed for phpMailer, taken from php.ini Default is 'localhost'

$g_smtp_username

This option allows the use of SMTP Authentication when using a remote SMTP host with PHPMailer. If smtp_username is not '' then the username and password will be used when logging in to the SMTP server. Default is ''.

$g_smtp_password

This is the password that is used in SMTP Authentication . Default is ''.

$g_email_send_using_cronjob

TODO

$g_email_set_category

Specify whether e-mails should be sent with the category set or not. This is tested with Microsoft Outlook. More testing for this feature + other formats will be added in the future. OFF, EMAIL_CATEGORY_PROJECT_CATEGORY (format: [Project] Category). Default is OFF.

$g_email_separator1

Default is str_pad('', 70, '='); This means 70 equal signs.

$g_email_separator2

Default is str_pad('', 70, '-'); This means 70 minus signs.

$g_email_padding_length

Default is 28.

Mantis uses flags and a threshold system to generate emails on events. For each new event, email is sent to:

From this list, those recipients who meet the following criteria are eliminated: