| | |
| | | } |
| | | else |
| | | { |
| | | /* |
| | | We need to replace mime_content_type in a later release because the function |
| | | is deprecated in favour of File_Info |
| | | */ |
| | | $ctype = rc_mime_content_type($attachment['path'], $attachment['mimetype']); |
| | | $ctype = str_replace('image/pjpeg', 'image/jpeg', $ctype); // #1484914 |
| | | $ctype = str_replace('image/pjpeg', 'image/jpeg', $attachment['mimetype']); // #1484914 |
| | | |
| | | // .eml attachments send inline |
| | | $MAIL_MIME->addAttachment($attachment['path'], |
| | |
| | | return; |
| | | } |
| | | |
| | | // set repliead flag |
| | | // set replied/forwarded flag |
| | | if ($_SESSION['compose']['reply_uid']) |
| | | $IMAP->set_flag($_SESSION['compose']['reply_uid'], 'ANSWERED'); |
| | | else if ($_SESSION['compose']['forward_uid']) |
| | | $IMAP->set_flag($_SESSION['compose']['forward_uid'], 'FORWARDED'); |
| | | |
| | | } // End of SMTP Delivery Block |
| | | } // End of SMTP Delivery Block |
| | | |
| | | |
| | | |