Hi All,
I need some assistance, i configured Mantis Correctly interms of Mail Relay but mails are not going out am getting the below message in the logs and when i run the send_email PHP file below is the error please assist.
====Logs Error ====
2019-03-21 06:27 PDT MAIL_VERBOSE email_api.php:2016 email_shutdown_function() Shutdown function called for /mantis/manage_user_reset.php (email processing forced)
2019-03-21 06:27 PDT MAIL_VERBOSE email_api.php:1204 email_send_all() Processing e-mail queue (457 messages)
2019-03-21 06:27 PDT MAIL_VERBOSE email_api.php:1215 email_send_all() Sending message 1
2019-03-21 06:27 PDT MAIL_VERBOSE email_api.php:1350 email_send() Using debug email '1'
==========PHP Executable for Send emails===========
PS C:\Bitnami\mantis-2.19.0-0\apps\mantis\htdocs\scripts> php send_emails.php
PHP Notice: Use of undefined constant OF - assumed 'OF' in C:\Bitnami\mantis-2.19.0-0\apps\mantis\htdocs\config\config_
inc.php on line 30
Invalid address: (to): 1
C:\Bitnami\mantis-2.19.0-0\apps\mantis\htdocs\vendor\phpmailer\phpmailer\src\PHPMailer.php: 934: PHPMailer\PHPMailer\PHP
Mailer - -> - addOrEnqueueAnAddress( <string>'to', <string>'1', <string>'' )
C:\Bitnami\mantis-2.19.0-0\apps\mantis\htdocs\core\email_api.php: 1354: PHPMailer\PHPMailer\PHPMailer - -> - addAddress(
<integer>1, <string>'' )
C:\Bitnami\mantis-2.19.0-0\apps\mantis\htdocs\core\email_api.php: 1216: - - - - email_send( <Object><EmailData> ( [email
] => 'bdc.abc@testorg.com', [subject] => '[MantisBT] Account registration', [body] => 'The user admin has creat
ed an account for you with username "RODRICK". In order to complete your registration, visit the following URL (make sur
e it is entered as the single line) and set your own access password:
http://X.X.X.X/mantis/verify.php?id=2&c ... TWF8QblAL0
KNPFAiY3fB9iL3UJI1rLP8p
If you did not request any registration, ignore this message and nothing will happen.
Do not reply to this message', [metadata] => <array> { ['headers'] => <array> { }, ['charset'] => 'utf-8', ['hostname']
=> 'X.X.X.X' }, [email_id] => '1', [submitted] => '1547797885' ) )
C:\Bitnami\mantis-2.19.0-0\apps\mantis\htdocs\scripts\send_emails.php: 40: - - - - email_send_all()
Sending emails...
2019-03-22 03:20 PDT MAIL_VERBOSE email_api.php:1204 email_send_all() Processing e-mail queue (461 messages)
2019-03-22 03:20 PDT MAIL_VERBOSE email_api.php:1215 email_send_all() Sending message 1
2019-03-22 03:20 PDT MAIL_VERBOSE email_api.php:1350 email_send() Using debug email '1'
INTERNAL APPLICATION ERROR:
PS C:\Bitnami\mantis-2.19.0-0\apps\mantis\htdocs\scripts>
================================My Config
g_allow_signup = ON;
$g_send_reset_password =ON;
$g_allow_anonymous_login = ON;
$g_anonymous_account = '';
$g_enable_email_notification = ON;
$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
$g_smtp_host = 'X.X.X.X';
$g_smtp_connection_mode = '';
$g_smtp_port = 25;
$g_smtp_username = '';
$g_smtp_password = '';
$g_administrator_email = '<XXXX>';
$g_webmaster_email = '<XXXX>';
$g_from_name = 'Mantis Bug Tracker';
$g_from_email = '<XXXXX>';
$g_return_path_email = '<XXXX>';
$g_email_receive_own = ON;
$g_validate_email=ON;
$g_email_send_using_cronjob = OFF;
$g_debug_email = ON;
Thanks in Advance
UNABLE TO CLEAR MAIL QUEUE
Moderators: Developer, Contributor
Re: UNABLE TO CLEAR MAIL QUEUE
Did you check line 30? OF does not exist, there is just OFF.PHP Notice: Use of undefined constant OF - assumed 'OF' in C:\Bitnami\mantis-2.19.0-0\apps\mantis\htdocs\config\config_
inc.php on line 30
Re: UNABLE TO CLEAR MAIL QUEUE
Hi Atrol,
I made the adjustment on line 30 but am still getting internal error when running the send mails php file or even just processing a reset from application,
=======================================================
PS C:\Bitnami\mantis-2.19.0-0\apps\mantis\htdocs\scripts> php send_emails.php
Invalid address: (to): 1
C:\Bitnami\mantis-2.19.0-0\apps\mantis\htdocs\vendor\phpmailer\phpmailer\src\PHPMailer.php: 934: PHPMailer\PHPMailer\PHP
Mailer - -> - addOrEnqueueAnAddress( <string>'to', <string>'1', <string>'' )
C:\Bitnami\mantis-2.19.0-0\apps\mantis\htdocs\core\email_api.php: 1354: PHPMailer\PHPMailer\PHPMailer - -> - addAddress(
<integer>1, <string>'' )
C:\Bitnami\mantis-2.19.0-0\apps\mantis\htdocs\core\email_api.php: 1216: - - - - email_send( <Object><EmailData> ( [email
] => 'abc.xyz@org.com', [subject] => '[MantisBT] Account registration', [body] => 'The user admin has creat
ed an account for you with username "RODRICK". In order to complete your registration, visit the following URL (make sur
e it is entered as the single line) and set your own access password:
http://1X.X.X.X/mantis/verify.php?id=2& ... TWF8QblAL0
KNPFAiY3fB9iL3UJI1rLP8p
If you did not request any registration, ignore this message and nothing will happen.
Do not reply to this message', [metadata] => <array> { ['headers'] => <array> { }, ['charset'] => 'utf-8', ['hostname']
=> 'X.X.X.X' }, [email_id] => '1', [submitted] => '1547797885' ) )
C:\Bitnami\mantis-2.19.0-0\apps\mantis\htdocs\scripts\send_emails.php: 40: - - - - email_send_all()
Sending emails...
2019-03-24 22:35 PDT MAIL_VERBOSE email_api.php:1204 email_send_all() Processing e-mail queue (461 messages)
2019-03-24 22:35 PDT MAIL_VERBOSE email_api.php:1215 email_send_all() Sending message 1
2019-03-24 22:35 PDT MAIL_VERBOSE email_api.php:1350 email_send() Using debug email '1'
INTERNAL APPLICATION ERROR:
I made the adjustment on line 30 but am still getting internal error when running the send mails php file or even just processing a reset from application,
=======================================================
PS C:\Bitnami\mantis-2.19.0-0\apps\mantis\htdocs\scripts> php send_emails.php
Invalid address: (to): 1
C:\Bitnami\mantis-2.19.0-0\apps\mantis\htdocs\vendor\phpmailer\phpmailer\src\PHPMailer.php: 934: PHPMailer\PHPMailer\PHP
Mailer - -> - addOrEnqueueAnAddress( <string>'to', <string>'1', <string>'' )
C:\Bitnami\mantis-2.19.0-0\apps\mantis\htdocs\core\email_api.php: 1354: PHPMailer\PHPMailer\PHPMailer - -> - addAddress(
<integer>1, <string>'' )
C:\Bitnami\mantis-2.19.0-0\apps\mantis\htdocs\core\email_api.php: 1216: - - - - email_send( <Object><EmailData> ( [email
] => 'abc.xyz@org.com', [subject] => '[MantisBT] Account registration', [body] => 'The user admin has creat
ed an account for you with username "RODRICK". In order to complete your registration, visit the following URL (make sur
e it is entered as the single line) and set your own access password:
http://1X.X.X.X/mantis/verify.php?id=2& ... TWF8QblAL0
KNPFAiY3fB9iL3UJI1rLP8p
If you did not request any registration, ignore this message and nothing will happen.
Do not reply to this message', [metadata] => <array> { ['headers'] => <array> { }, ['charset'] => 'utf-8', ['hostname']
=> 'X.X.X.X' }, [email_id] => '1', [submitted] => '1547797885' ) )
C:\Bitnami\mantis-2.19.0-0\apps\mantis\htdocs\scripts\send_emails.php: 40: - - - - email_send_all()
Sending emails...
2019-03-24 22:35 PDT MAIL_VERBOSE email_api.php:1204 email_send_all() Processing e-mail queue (461 messages)
2019-03-24 22:35 PDT MAIL_VERBOSE email_api.php:1215 email_send_all() Sending message 1
2019-03-24 22:35 PDT MAIL_VERBOSE email_api.php:1350 email_send() Using debug email '1'
INTERNAL APPLICATION ERROR:
Re: UNABLE TO CLEAR MAIL QUEUE
You hav set
This makes no sense as ON (1) is no valid email address
https://www.mantisbt.org/docs/master/en ... ig.logging
Code: Select all
$g_debug_email = ON;
https://www.mantisbt.org/docs/master/en ... ig.logging
Used for debugging e-mail notifications. When it is '', the emails are sent normally. If set to an e-mail address, all messages are sent to it, with the original recipients (To, Cc, Bcc) included in the message body.