[TYPO3-commerce] order confirmation says user email is invalid anyway

Thibaut van de Mortel tibo at goutemesdisques.com
Mon Jan 7 05:46:03 CET 2008


Hello list,
when I reach checkout's last step, the confirmation message says that 
the user email is invalid even if it is valid.

I think this problem comes from lines 957-958 in 
class.tx_commerce_pi3.php :

$this->userMailOK = $this->sendUserMail($orderId,$orderData);
$this->adminMailOK = $this->sendAdminMail($orderId,$orderData);

The problem is that those variables are always equal to NULL because 
both functions (sendUserMail and sendAdminMail) do this :

return t3lib_div::plainMailEncoded([...]) ;

But this function doesn't return anything (even if email was sent), 
that's why both variables are always empty.

I don't know the technique to be sure that an email has been sent, but 
it looks like both variables are meant to say precisely that. They just 
don't get the expected answer from "plainMailEncoded" as it doesn't 
return anything at all.

I don't know the solution for this problem. We cannot change t3lib_div 
because it is a core file.

The easy solution is to assume that the email has been correctly sent as 
long as the email address looks valid ; but it is surely not the 
cleanest way to do it.

Anyway, it looks like a bug to me, shall I do an official bug report 
about it?

Regards,
tibo


More information about the TYPO3-project-commerce mailing list