Mantis Logo
Mantis Manual
Manual
Configuration

Database
Path
Webserver
Version
Email
Language
Display
Time
JpGraph
Date
News
Default Preferences
Summary
Bugnote
File Upload
HTML
Authentication
Status Settings
Filters
Misc
Colors
Cookies
Database Tables
Speed Optimisation
Reminders
Bug History
Sponsorship
Source Control Integration
Custom Fields
My View Settings
Relationships
System Logging


Partner Links


Email
Last Modified: August 24, 2004 18:08PM
(Any)
Description

$g_administrator_emailThe 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.

 sysadmin@example.com 
$g_webmaster_emailThe webmaster's e-mail address. This address is displayed in the bottom of all Mantis pages.

 webmaster@example.com 
$g_from_emailThe email address to be used as the source of all emails sent by Mantis.

 noreply@example.com 
$g_to_emailDropped in 0.19.0. All emails are going to be sent to this email address. This can be an email list or an archive address to be used to archive all notifications. If this functionality is not needed, then it can be set to nothing ('').
$g_return_path_emailEmail address to receive bounced emails.
$g_enable_email_notificationSet to ON to enable e-mail notifications, OFF to disable them. Default is ON.

Up to version 0.18.0a4 setting this option to OFF would disable all emails sent by Mantis. However, in 0.18.0a5 this was changed to have no effect on user sign-up notifications.
$g_allow_signupAllow users to signup for their own accounts. Default is ON. (added in 0.19)
$g_send_reset_passwordWhen set to ON, Mantis will email the users their new passwords when their accounts are reset. If set to OFF, the password will be reset to blank and no e-mail will be sent. Default is ON. (added in 0.19)
$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_use_x_priority Dropped in 0.19.0.Set to OFF to remove X-Priority header. Default is ON.
$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_use_bcc Dropped in 0.19.0.Specifies whether email recipients should be added in the To: field (OFF) or the Bcc: field (ON). The default value is ON.
You might need to turn this option OFF on Windows systems, as long as php-mail-function has its bcc-bug (~PHP 4.0.6). However, if you are using PHPMailer for sending emails you probably would not have a problem.
$g_use_phpMailer
Dropped in 0.19.0. This is now the only mailing mechanism.Use PHPMailer instead of standard mail() function. Get the PHPMailer-package from http://phpmailer.sourceforge.net. The installation is very simple you only need 2 plain text php-files: class.smtp.php and class.phpmailer.php.

Copy these files to your php-include-dir i.e. 'c:\php\includes' or '/usr/lib/php/includes' and add this path to the 'include_path'-entry in the php.ini file.
The installation is described in the readme and there is also a simple example.
PHPMailer comes with a detailed documentation in phpdoc format.

Default is OFF.
Although the default value is OFF. It is recommended to use PHPMailer. It is also planned that in future Mantis releases PHPMailer will be the only supported option for sending emails.
$g_phpMailer_path Dropped in 0.19.0.Path to PHPMailer directory (default is empty). This directory must include class.phpmailer.hpp and class.smtp.php. The default should work if the PHPMailer directory is in the include_path. If a path is specified, it should be terminated by a directory separator.
$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_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:
  • the reporter, qualified by the notify flag 'reporter' below
  • the handler (or Assigned to), qualified by the notify flag 'handler' below
  • anyone monitoring the bug, qualified by the notify flag 'monitor' below
  • anyone who has ever added a bugnote the bug, qualified by the notify flag 'bugnotes' below
  • anyone assigned to the project whose access level is greater than or equal to the notify flag 'threshold_min' and less than or equal to the notify flag 'threshold_max' below
From this list, those recipients who meet the following criteria are eliminated:
  • the originator of the change, if $g_email_receive_own is OFF
  • the recipient either no longer exists, or is disabled
  • the recipient has turned their email_on_<new status> preference OFF
  • the recipient has no email address extered

$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_default_notify_flagsAssociated 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 or
if 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_flagsDefines 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 (was 'assigned' in 0.18)
  • 'bugnote': a bugnote has been added to a bug
  • 'sponsor': the sponsorship for the bug has changed (added, deleted or updated) (added in 0.19)
  • 'relation': a relationship for the bug has changed (added, deleted or updated) (added in 0.19)
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. (was 'status_<status>' in 0.18)
See also: Email Notifications

User Contributed Notes
Email
Add Notes About Notes
ghenshaw@altera.com
27-Aug-2003 10:53
#5
[Editor] Comment applied, thanks.

The description for $g_default_notify_flags doesn't match the code (0.18-rc1).

"threshold" doesn't exist and is replaced by "threshold_min" and "threshold_max". This is 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.
victor @ Mantis
31-Aug-2003 4:42
#6
The implemention for checking the email mx record uses function getmxrr() which is not supported under Windows. Hence, the $g_check_mx_record option should always be OFF for Windows installations.
bmatzelle@NOSPAMMERyahoo.com
02-Oct-2003 12:42
#14
I would like to make a comment on the $g_use_bcc setting.

It is noted the following: "...if you are using PHPMailer for sending emails you probably would not have a problem."

That assumption is correct as long as you are using the $g_phpMailer_method = 2 (SMTP) setting with PHPMailer. I would suggest to the developers to set the current default, mail (0), as SMTP to prevent further win32 issues. --Brent.
jolon@kungfudesign.com
14-Dec-2003 23:44
#36
[Editor] This is now added to the bug tracker. Please log defects directly in the bug tracker. For more details see http://bugs.mantisbt.org/view.php?id=0003459

i ran into a problem during installation, which is that for some reason in the X-Sender header, there is a newline afterwards, which caused the email filter on the server to drop it before it got out. And if your user's emails are filtered for bad headers it will be dropped there as well.
rsleegers_no_spam@sigmaassessmentsystems.com
19-Feb-2004 14:19
#70
If you are using Apache and get the error "Could not load language file" while trying to e-mail using PhpMailer:
$g_phpMailer_method = 2;

make sure you also specify:
$g_phpMailer_path = "c:/[sendmailpath]/";

Placing the "class.phpmailer.php" and "class.smtp.php" in the includes path alone does not properly parse the language path (even for English). The language/ folder hierarchy is required for proper usage.
NHBLKCHQIHEB@spammotel.com
23-Feb-2004 9:39
#74
Our company's current tracking system prepends the subject line with a tag so e-mail programs can filter based on the subject. By default, the bug e-mails sent by Mantis are formattred as "[ project_name bug_ID#]: Bug title"

To add a prefix, change the email_build_subject() function found in core/email_api.php. The return statement formats the subject line. My return line now looks like:

return 'Mantis - ['.$p_project_name.' '.$p_bug_id.']: '.$p_subject;

Michael
Lars Truijens
16-Mar-2004 7:34
#86
Some of the actions of the $g_notify_flags have changed names since a while (0.18?). They are now status_resolved instead of resolved, and so on.
rsleegers_no_spam@sigmaassessmentsystems.com
18-Mar-2004 9:20
#90
To clarify my above comment, and give an example:

I have a folder called "sendmail", the directory list goes like this:
c:\sendmail\
c:\sendmail\class.phpmailer.php
c:\sendmail\class.smtp.php
c:\sendmail\language\phpmailer.lang-en.php (* plus other language files)

In "config_inc.php", I have:
$g_phpMailer_path = "c:/sendmail/"

Richard
(remove _no_spam to reply)
knight_k at gmx dot de
24-Apr-2004 14:16
#123
If you set $g_to_email="" and you get an "internal server error" when mantis is trying to send emails (e.g. on adding bugs/bugnotes) you should set $g_use_bcc=OFF.
yourname@NOSPAMyourdomain.com
18-Jun-2004 21:45
#156
Can this package receive email?
.
ie: It sends email out to people - with some return address, ie: "bugtrack@example.com" with a specific subject.
.
Users should be able to just click "reply" and have their email responses automatically added as a note or comment to the existing bug they replied to.
.
Simple procmail & perl script should work.
.
To make a simple security schema - you could for example restrict email -reply postings to only those that have been emailed, or only within certian domains.
rajesh@gkbcinc.com
04-Oct-2004 2:36
#219
Hai all

am new to mantis.

i downloaded new version and installed it properly.

when i create new users its addint to db good but its not mailing!!

am gettign a error in a blank screen

PROBLEMS SENDING MAIL TO:
Mailer Error: Could not instantiate mail function.

can anybody help me ??

Rajesh
noemailplease@notreal.com
05-Oct-2004 18:39
#224
I am having the same problem (PROBLEMS SENDING MAIL TO:
Mailer Error: Could not instantiate mail function.). The mail() function works in my other scripts on this server. I am running Apache 1.3.x and PHP 4.2.x
eman@hisemailaddress.org
15-Oct-2004 17:39
#232
I was having the same problems with my install, the difference for me was to set $_phpMailer_method = 2 so as to use the smtp mailing of phpMailer.

Here's what I added to my 'config_inc.php' file.

        $g_phpMailer_method = 2;

        $g_smtp_host = '_host_';
        $g_smtp_username = '_user_name_';
        $g_smtp_password = '_passowrd_';
koen dot roggemans at pandora dot be
17-Oct-2004 16:51
#234
[Victor]
I recommend the following settings:

$g_phpMailer_method = 2;
$g_smtp_host = 'smtp.example.com'; // whatever you smtp server is
$g_smtp_username = 'my_user_name';
$g_smtp_password = 'my_password';

This will use the phpmailer that is installed with Mantis, and will set it up to use SMTP for sending emails.
[/Victor]

I use Mantis for a year now with no trouble. After the upgrade to version 19 (coming from 18.2) emails aren't send anymore. No errormessage :(

I have trouble understanding the helpfile on the phpmailer. I have no access to the php includes folder on my server, but I notice the phpmailer files are in the mantis distribution. How can I use them?
dylanc@mailNO.SPAMcom
27-Oct-2004 6:46
#248
I'm having the same problem with not receiving emails. I have the following set so I'd expect to see some errors if there are some.

$g_phpMailer_method = 2;
$g_smtp_host = 'localhost'; // whatever you smtp server is
$g_smtp_username = '';
$g_smtp_password = '';
$g_stop_on_errors = ON;
$g_email_receive_own = on;

There is nothing in any of the logs either, what could be wrong?
wturpin@wellogix.com
08-Nov-2004 17:08
#258
I am getting this error when creating a new user.

SYSTEM WARNING: fsockopen(): php_network_getaddresses: gethostbyname failed

SYSTEM WARNING: fsockopen(): unable to connect to _host_:25

PROBLEMS SENDING MAIL TO:
Mailer Error: SMTP Error: Could not connect to SMTP host.

Can anyone help?
bruno.girin@cambista.com
10-Dec-2004 5:04
#285
> SYSTEM WARNING: fsockopen(): php_network_getaddresses: gethostbyname failed

This means that your system cannot resolve a host name using your DNS server.

> SYSTEM WARNING: fsockopen(): unable to connect to _host_:25

This means that mantis cannot connect to port 25 on host _host_. Port 25 is the SMTP port.

The two together means that your $g_smtp_host variable contains the value '_host_', which is obviously invalid: it cannot be resolved into a real machine, let alone one that runs an SMTP server. Check the fully qualified name of your SMTP server, make sure you can ping it from your mantis machine (ping <name> on Windows, UNIX or Linux) and update your $g_smtp_host variable.

Bruno
karasik-mai@mail.ru
24-Dec-2004 3:11
#299
I am get this error when creating a new message
PROBLEMS SENDING MAIL TO:
Mailer Error: SMTP Error: The following recipients failed: karasik-mai@mail.ru
Can anyone help&
szerdahelyi@online.de
15-Feb-2005 4:56
#352
The email notification does not work. I get the message:

PROBLEMS SENDING MAIL TO
Mailer Error: Could not instantiate mail function

My company uses Microsoft Outlook for emailing (Microsoft Exchange Server). What method shall I use for email notification? Is smtp also the right method to use?
ann.patel@motorola.com
15-Feb-2005 16:10
#354
Hi all,
My email is configured and according to the check.php, appear to be working properly. However, when I choose to sign up for a new acct (signup_page.php) I get the following error msg:

PROBLEMS SENDING MAIL TO:
Mailer Error: Could not instantiate mail function.

But...the account still gets created and I do eventually get an email. Anyone have any ideas on why I am seeing the signup.php error page ?

Stats:
I am on an XP box.
Using latest stables versions of Apache, PHP, MySQL and 0.19.2 of the Mantis release.

Thanks,
Ann
garbage@can.com
01-Mar-2005 17:31
#367
Is there a setting that will turn off all emails to everybody, with the exception of password changes? I'm getting a little lost here with all the email flags...
Can the status be shown in e-mail subjects?
01-Apr-2005 2:40
#396
I would like to have the issue status (or rather, status change) shown in the e-mail subject. Does someone know a global variable I can set to achieve this?

If you have a mailbox full of issues, they all have the same subjects, and the only way to find out why you received them is to open each single one.
mateja98@hotmail.com
01-Apr-2005 17:52
#397
We have an e-mail account XX (now read by POP protocol). I want each message from this account to become a "bug" automatically. Can (How) one set-up Bugzilla in that way?

Is it possible that an e-mail sent from XX account and having bug number #YY in "Subject" is automatically added to bug #YY ?


sefirot66@hotmail.com
06-Apr-2005 4:36
#400
Does anybody know how can I prevent the program from sending and email each time an account is created to the user that creates it? I just want new accounts to have a blank password.
Thanks a lot,mantis rules!!!
demoman83@hotmail.com
12-Apr-2005 8:18
#406
Is there a way to disable all the mail and just let the admin fill in the pw when he creates the user?

b/c i don't want ppl to be able to sign up anway so that doesn't matter.
I don't get the mail to work b/c i get errors like

PROBLEMS SENDING MAIL TO:
Mailer Error: SMTP Error: Could not connect to SMTP host.

And filling in the pw is fine for me.
myoli@freemail.hu
07-Jul-2005 6:21
#504

 I have the same problem:

PROBLEMS SENDING MAIL TO:
Mailer Error: Could not instantiate mail function.

 I use this settings :
 include_path = ".;c:\PHP5\includes\"
  in php.ini

 $g_use_phpMailer = ON;
 $g_phpMailer_path = "c:/PHP5/includes/";
 in matis config_inc.php

 and
 $g_phpMailer_method = 0;
 in mantis config_defaults_inc.php

 If anybody could help, I am very grateful.
 Thanx.
bonjojo@hotmail.com
25-Jul-2005 12:21
#537
Update config_inc.php configuration file and include the following parameters:

$g_enable_email_notification = OFF;
$g_send_reset_password = OFF;
$g_validate_email = OFF;
$g_check_mx_record = OFF;

 There will disable the system generation and emailing of password to the user. It will enable the administrator to assign password during user creation.
info@einfoway.com
18-Aug-2005 11:06
#573
I have installed the script and its working fine except EMAIL part. I dont get any emails nor to i get any error messages. Even while sign up its goes fine but we dont get any emails nor any errors....

Even in check.php it says email send fine. PLz help
Problem to send emails
31-Aug-2005 11:18
#586
Hi there!

I have the same problem like describe above. Did someone finally succed to find a solution? That is the error message I get when I try to create a new account:

PROBLEMS SENDING MAIL TO: bradpitt@yahoo.fr
Mailer Error: Could not instantiate mail function.

My OS is Windows XP and I have installed XAMPP for Windows 1.4.15 as a complete solution (Apache 2.0.54, PHP 5.0.4)

I tried every single solution gave above but nothing worked. Did our beloved Mantis developpers found out how to solve the problem?

Thanks,
James

PS:
In the config_inc.php, I only added:
$g_smtp_host = 'smtp.myhost.fr';
Email works but Validate(./admin/check.php) does not...
01-Sep-2005 11:00
#589
Hi all,

I have the new version of Mantis (1.0.0rc1) in place along with Apache2, MySQL (4.1.31) and PHP (4.3.11). I installed and configured the PHP Mailer as instructed and selected SMTP as the email protocol.

When I run the ./admin/check.php page it indicates on the validate_email = OFF? a BAD indicator. Yet, when I scroll down the page and click the Test Email button it sends the email.

Anyone encountered this inconsistency?

I put the following into my config_inc.php file :

# set to OFF to disable email check
$g_validate_email = ON;

So I'm guessing this BAD indicator should be GOOD.

thx in advance,

adym
dazincalgary@hotmail.com
03-Oct-2005 15:03
#630
so after looking through the code and the phpmailer code, it looks like the params that are sent to the mail function are causing the mail function to return false, so if you remove them then everything works fine. Take a look at the first if statement.

/**
     * Sends mail using the PHP mail() function.
     * @access private
     * @return bool
     */
    function MailSend($header, $body) {
        $to = "";
        for($i = 0; $i < count($this->to); $i++)
        {
            if($i != 0) { $to .= ", "; }
            $to .= $this->to[$i][0];
        }
 
        if ($this->Sender != "" && strlen(ini_get("safe_mode";))< 1)
        {
            $old_from = ini_get("sendmail_from";);
            ini_set("sendmail_from", $this->Sender);
            $params = sprintf("-oi -f %s", $this->Sender);
            $rt = @mail($to, $this->EncodeHeader($this->Subject), $body,
                        $header); //, $params);!!!!!!!!!!!!!
        }
        else
            $rt = @mail($to, $this->EncodeHeader($this->Subject), $body, $header);
 
        if (isset($old_from))
            ini_set("sendmail_from", $old_from);
 
        echo $rt;
        if(!$rt)
        {
            $this->SetError($this->Lang("instantiate";));
            return false;
        }
 
        return true;
 
}
dazincalgary@hotmail.com
03-Oct-2005 15:46
#631
$params = sprintf("-oi -f %s", $this->Sender);
to clarify the space between -f and %s needs to be removed then send mail documents state the the name follows straight after the flag so when expaneded the -oi -fdazincalgary@hotmail.com.

happy bugtracking :)
jugoslav at domenca com
10-Nov-2005 4:05
#716
I was receiving all the problems described above

$g_phpMailer_method = 0
resulted in "could not instatiate" error

$g_phpMailer_method = 1
sent the mail without an error, but the mail was not delivered

$g_phpMailer_method = 2
returned an error saying, it could not deliver mail to the following recipients: 1

I did a little step-by-step debugging and found a "fascinating" bug in the Mantis code.
In the file /core/email_api.php on line 728 it says
   $mail->AddAddress( $t_debug_email, '' );
where it should say
   $mail->AddAddress( $t_debug_to, '' );

This causes the code to send a wrong recipient address to the phpmailer class, which results in error.

Hope this helps, it solved the problem for me!
jugoslav at domenca com
10-Nov-2005 7:12
#717
oh, sorry, that's in version 1.0.0rc2
jukiller@hotmail.com
01-Dec-2005 4:44
#740
quote :
$g_to_email : Dropped in 0.19.0. All emails are going to be sent to this email address. This can be an email list or an archive address to be used to archive all notifications. If this functionality is not needed, then it can be set to nothing ('').

Is it a way to make this work again in 0.19.3 ?
I need this feature :(
smileliyan@eyou.com
10-Jan-2006 1:21
#811
hi,everyone
I met a same email question,I use the check.php page
the error is:
 Testing Email
You can test the mail() function with this form. Just check the recipient and click submit. If the page takes a very long time to reappear or results in an error then you will need to investigate your php/mail server settings. Note that errors can also appear in the server error log. More help can be found at the PHP website.

Testing Mail - Your PHP mail settings appear to be correctly set.
--------------------------------------------------------------------------------
smtp.host.com
SYSTEM WARNING: fsockopen(): unable to connect to smtp.host.com:25

PROBLEMS SENDING MAIL TO: smileliyan@eyou.com
Mailer Error: SMTP Error: Could not connect to SMTP host.

I have setup global variable in the config file
smtphost,uaername,pwd,path and so on,and ensure its validity.
but why did it still appear error ??who can tell me the reason,thx!!
smileliyan@eyou.com
10-Jan-2006 1:22
#812
hi,everyone
I met a same email question,I use the check.php page
the error is:
 Testing Email
You can test the mail() function with this form. Just check the recipient and click submit. If the page takes a very long time to reappear or results in an error then you will need to investigate your php/mail server settings. Note that errors can also appear in the server error log. More help can be found at the PHP website.

Testing Mail - Your PHP mail settings appear to be correctly set.
--------------------------------------------------------------------------------
smtp.host.com
SYSTEM WARNING: fsockopen(): unable to connect to smtp.host.com:25

PROBLEMS SENDING MAIL TO: smileliyan@eyou.com
Mailer Error: SMTP Error: Could not connect to SMTP host.

I have setup global variable in the config file
smtphost,uaername,pwd,path and so on,and ensure its validity.
but why did it still appear error ??who can tell me the reason,thx!!
donkey3000@gmail.com
10-Feb-2006 10:18
#884
I had the same problem as many people above. In my case it was solved by using just $g_smtp_host = 'smptserver.com'; and not 'smtp.smtpserver.com'

also I had to add $g_phpMailer_method = 2;
jeff@foresite.com
08-Mar-2006 13:54
#917
How would I go about setting up an automatic email notification when new issues are added? Here's the scenario:

Clients are entering bugs in mantis. I do not receive an email when a new issue is added since clients do not have access rights to assign the issue to me.

Can I setup the system to do one of the following:

1) automatically email me when a new issue is added.

2) Automatically assign me as the assigned person on the issue so that I receive an email from the process of assigment.

thanks in advance
shayne.fletcher@spam-trap.shinseibank.com
13-Mar-2006 0:50
#931
Our email notification problems ('Could not instantiate mail function', 'Could not connect to SMTP host', ...) turned out to be due to virus software (trying to protect against mass mailing worms from sending mail). The fix was to add 'php-cgi.exe' to it's list of trusted applications making use of port 25.
luuk@NOSPAMvicus.nl
18-Mar-2006 3:37
#948
re jeff@foresite.com 08-Mar-2006 13:55

Create (minimum) one category and assign this category to yourselve for the project. When entering a bug, the reporter selects the category (if only one this is default) and you're automatically assigned to that report.

don't forget to set the settings to have a e-mail when a bug is assigned to you.
user@domain.com
20-Mar-2006 8:33
#951
Hi,
when I run check.php for seeing if the mail works, it shows error. There is some log where I can see the error messages? Thanks beforehand.

Cheers...
donald . grieve at rtel . c o m
23-Mar-2006 8:09
#962
Problem
-------
All emails being sent to the same address regardless of what email address is put in for a user! Using Mantis 1.0.1, SMTP with exchange server.

The emails sent from mantis server was always going to "1@domain.com" ("1"=one and "domain" was replaced with rtel) and being redirected accordingly with the error in attachments (.dat file and email itself). The 'To' field in the attachment body was correct but not in the header of the attachment.

Solution
---------
Implenting the suggested bugfix, changing the variable in file /core/email_api.php on line 728 by ugoslav at domenca com
10-Nov-2005 4:05. ThankYou!
maruti_nandan@yahoo.com
06-Apr-2006 5:35
#984
I've been Using Mantis for over more then three months, and it was functioning fine. But now it is showing an error while a change is made in the status of an issue (reporting an issue, resolving etc.). This error appears on the top of the page while loading, and disappears before complete load.
'Could not instantiate mail function'
this line is shown along with email ids of a few users. like each line has contants (approximatly)

"Could not instantiate mail function, error sending mail to EmailIdofUser@domain.ext"

Not checked if the mail is really delivered or not, to those emailid for which the momentary message was shown.

-maruti nandan
April 06, 06
sbsa_btech@yahoo.co.in
18-Apr-2006 4:21
#1011
Hi,

  I install the mantis it is works fine without email.

When add a report issue I received error

Fatal error: Maximum execution time of 30 seconds exceeded in c:\appserv\www\mantis\core\phpmailer\class.smtp.php on line 1018

When add new user I recive error

 
Fatal error: Maximum execution time of 30 seconds exceeded in c:\appserv\www\mantis\core\phpmailer\class.smtp.php on line 1018

Fatal error: Maximum execution time of 30 seconds exceeded in c:\appserv\www\mantis\core\email_api.php on line 763

what is the problem?

Thanking you.
 
sbsa_btech@yahoo.co.in
18-Apr-2006 4:21
#1014
Hi,

  I install the mantis it is works fine without email.

When add a report issue I received error

Fatal error: Maximum execution time of 30 seconds exceeded in c:\appserv\www\mantis\core\phpmailer\class.smtp.php on line 1018

When add new user I recive error

 
Fatal error: Maximum execution time of 30 seconds exceeded in c:\appserv\www\mantis\core\phpmailer\class.smtp.php on line 1018

Fatal error: Maximum execution time of 30 seconds exceeded in c:\appserv\www\mantis\core\email_api.php on line 763

what is the problem?

Thanking you.
 
konst (a) nt ru
19-May-2006 8:25
#1080
Is it possible to limit email with several domains (more than one) ?
vitive@empal.com
06-Jun-2006 21:34
#1119
I succesful email setting.

 1. SMTP server install in windowsXP
    - control panel > program add/remove > windows member add/remove > internet info service > SMTP service check

 2. Mantis config file modify
    - config_default_inc.php open

    - # select the method to mail by:
# 0 - mail()
# 1 - sendmail
# 2 - SMTP
$g_phpMailer_method = 2;

       (method 0 > 2)

 3. SMTP server setting
   - coltrol panel > management tool > internet info service > (expand tree) default SMTP virtual server property select
   - access tab select
   - access coltrol > certification > anonymous access check
   - connection control > connection > down list exception select
   - relay limit > relay > down list exception select


all done.

p.s> There might be something illegible since this document is made under the Window XP with the Korean version.
benny.hanschmann@NOSPAMhach-lange.de
25-Aug-2006 9:26
#1250
Hello,

I recently installed Mantis 1.05 (using php5 and apache2 server) on suse linux 10.1 under VMware.
I also installed the latest version of phpmailer.

Internet and smtp are reachable and functioning from desktop but when testing email in the mantis check page I always get the error message

Testing Mail - PROBLEMS SENDING MAIL TO: benny.hanschmann@NOSPAMhach-lange.de
Mailer Error: The following From address failed: benny.hanschmann@NOSPAMhach-lange.de

I also tried different email addresses in the config file but there is always the same error message.

I am grateful for any ideas.
turbolenceNOSPAM@NOSPAMgmail.com
05-Sep-2006 10:05
#1256
I installed mantis without problem on a linux server (hosted on aruba.it). But even if I did not get any error I was unable to make Mantis send any email.

The problem was that my server titi.com refused to send email with address different from xxx@titi.com.

The solution of the problem was simply to add in the config_inc.php file the line

  $g_from_email ='info@titi.com';

so that the email sent by mantis had a domain name compatible with that one of my server.

I hope this ca be usefull also to other people!
Regards, gwl
tl_68105@spamMEyahooNOT.com
08-Nov-2006 18:59
#1288
Just got done installing and config-ing Mantis on Windows 2000/IIS/mySQL.
Not a bad process, the only snag was phpmailer was failing in admin/check.php.

One thing I find confusing is the $g_use_phpMailer flag notes. The flag is marked as "dropped" but states phpmailer is the only mailing mechanism available, then tells you to download phpmailer and put the files in your include path.

This is not necessary because the phpmailer classes are included in the core directory of the distribution. This part of the configuration/email documentation should be edited and clarified asap.

A second confusing snag is that you have to use $g_smtp_host to set your smtp name. IMO, this should be pulled from the php.ini file automatically. I was quite confused as to why the regular php mail() function worked but the Mantis phpmailer functionality did not.

Tim
jonathonpenberthyN0$PAM@N0$PAMhotmail.com
21-Nov-2006 4:08
#1299
Why Some Emails never Arive.

I have found that weather an email arives or not can depend on the email adress you send it to, for instance.

yahoo mail => never gets there
google mail => ends up in spam folder
hotmail => no problems

It appears that some email servers are treating the mail as spam, this may be because the your ip address that appears in your email header does not match senders domain me@myWeb.com, when the recipients mail server does a DNS look-up on myWeb.com.

This is just a guess, but if it were me thats how i would filter spam.

<b>IIS SMTP vertiul server</b>, anyone have any clues as i would like to use it insted of my ten a day limmited free SMTP server, but i cant quite get it working. Please email me if you have any ideas. At the moment i have it set up to allow access from localhost 127.0.0.1. But php fails to use it for some reason.

JDP
didnt recieve email when sign up for new user
15-Dec-2006 23:41
#1320
hi good day,

i got add the code in config_inc.php

$g_phpMailer_method = 2;
$g_smtp_host = 'localhost'; // whatever you smtp server is
$g_smtp_username = '';
$g_smtp_password = '';
$g_stop_on_errors = ON;
$g_email_receive_own = on;

no error message display when i sign up. it just inform me the signup is successful but the prpblem is i didnt receive any email confirmation?


can someone help to solve it?

thanks
rgorospe@ateneo.edu
02-Jan-2007 23:59
#1331
hi everyone,

got this error?



SYSTEM WARNING: fsockopen() [function.fsockopen]: unable to connect to mail.ateneo.edu:25 (Permission denied)
PROBLEMS SENDING MAIL TO: rgorospe@ateneo.edu
Mailer Error: SMTP Error: Could not connect to SMTP host.
E@E.com
05-Feb-2007 17:41
#1399
SYSTEM WARNING: fsockopen() [function.fsockopen]: unable to connect to <IP ADDRESS>:25 (Permission denied)
PROBLEMS SENDING MAIL TO: steve.moran@alliedsolutions.net
Mailer Error: SMTP Error: Could not connect to SMTP host.


I'm getting the exact same problem.
Add Notes About Notes
Last updated: Fri, 16 May 2008 - 13:15:21

Mantis @ SourceForge