FIX invert mime type and name
This commit is contained in:
parent
3d50c454c1
commit
392f31abbd
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user