View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004107 | mantisbt | public | 2004-07-15 16:05 | 2004-08-29 01:49 | |
Reporter | jonas | Assigned To | thraxisp | ||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 0.18.3 | ||||
Fixed in Version | 0.19.0rc1 | ||||
Summary | 0004107: email w/o recipient sent | ||||
Description | Mantis sometimes seems to send an email with no recipient. I have set the $g_to_email = '', and the system wont notify users about their own actions. Thus mantis will send an email to no recipients in some cases... | ||||
Tags | No tags attached. | ||||
I assume this generates an error, right? |
|
Yes, the mailserver doesn't like the mail and sends a note to the sender (in my case the owner of the process, user www-data). |
|
You haven't configured Mantis to put the users in Bcc, I take it? It sounds as if this is only a problem when no one is getting a mail (i.e. no recipients)? Is that correct? |
|
yes, that seems to be correct. I haven't checked the other options, but the email seems to have no recipients at all.. |
|
And is that what is supposed to happen, or is it supposed to be sent to some recipients? |
|
Mantis beaves correctly, no one should receive an email... but mantis shouldn't send an email if there are no recipients... |
|
Quite. |
|
As far as I can tell from the code, it shouldn't send any mail: (from email_send:)
is_blank even returns true if there is only whitespace in $p_recipient. Can you confirm that $g_use_bcc is set to OFF? And if so, can you see what the value of $p_recipient is when the problem occurs? |
|
Following are my comments:
As per the current code, the line Jeroen highlighted is the only place where this config is used in core/email_api.php. |
|
fixed in CVS. removed to_mail and use_bcc config options. |
|