View Issue Details

IDProjectCategoryView StatusLast Update
0008950mantisbtemailpublic2009-06-26 12:02
Reporterodamay Assigned Tograngeway  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionduplicate 
OSHP UnixOS Version11.11 
Product Version1.1.1 
Summary0008950: Emails are blocked in email_table Table and are sended a lot of time
Description

On release 1.1.1,it seems to have a bug on email notification.
To delete mail from email_table table, you test the result of mail
function.
If true, you delete the record from the database. But on Unix and
sendmail, php function mail() always return false and the mail is
sended but not deleted from the database, so after, all mails are
ended when you modify a bug.

file : email_api.php
On line 796 :
if ( !$mail->Send() ) {
$t_success = false;
} else {
$t_success = true;
if ( $t_email_data->email_id > 0 ) {
email_queue_delete( $t_email_data->email_id );
}
}

I have deleted this test and it's running on Unix.
We are running on PHP 4.3.11

TagsNo tags attached.

Relationships

duplicate of 0008885 closeddregad Sending emails blocks the whole Tracker 

Activities

ryandesign

ryandesign

2008-03-11 05:06

reporter   ~0017310

But the PHP documentation states that the mail() function "Returns TRUE if the mail was successfully accepted for delivery, FALSE otherwise."

http://us3.php.net/manual/en/function.mail.php

If your mail() function always returns FALSE, even when mail was successfully accepted for delivery (and indeed successfully delivered), then I think something is wrong with your mail server setup, or with your PHP.

giallu

giallu

2008-03-11 05:30

reporter   ~0017311

I second this is not a mantis bug.
Anyway, please note that "accepted for delivery" !== "successfully delivered", as the page you referenced clearly states.

For the OP: you may want to try a different delivery method like SMTP to workaround the problem

grangeway

grangeway

2008-07-28 10:04

reporter   ~0018716

Duplicate