FIX invert mime type and name

This commit is contained in:
Laurent Destailleur 2018-09-04 00:21:48 +02:00
parent 3d50c454c1
commit 392f31abbd

View File

@ -534,7 +534,7 @@ if ($ispaymentok)
$listofmimes=array(dol_mimetype($file)); $listofmimes=array(dol_mimetype($file));
} }
$result=$object->send_an_email($texttosend, $subjecttosend, $listofpaths, $listofnames, $listofmimes, "", "", 0, -1); $result=$object->send_an_email($texttosend, $subjecttosend, $listofpaths, $listofmimes, $listofnames, "", "", 0, -1);
if ($result < 0) if ($result < 0)
{ {
@ -546,6 +546,8 @@ if ($ispaymentok)
{ {
if ($file) $postactionmessages[] = 'Email sent to member (with invoice document attached)'; if ($file) $postactionmessages[] = 'Email sent to member (with invoice document attached)';
else $postactionmessages[] = 'Email sent to member (without any attached document)'; else $postactionmessages[] = 'Email sent to member (without any attached document)';
// TODO Add actioncomm event
} }
} }
} }