[TYPO3-commerce] order confirmation says user email is invalid anyway
Michiel Roos
michiel at netcreators.com
Mon Jan 7 09:19:18 CET 2008
Thibaut van de Mortel wrote:
> 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?
Dear Thibaut,
It was reported long long ago . . . and the fix is really simple . . . I
don't know what is wrong with the team that is maintaining commerce . . .
http://bugs.typo3.org/view.php?id=6314
Kind regards,
Michiel Roos
--
Netcreators BV :: creation and innovation
www.netcreators.com
Interesse in werken bij Netcreators?
http://www.netcreators.com/bedrijf/vacatures/
More information about the TYPO3-project-commerce
mailing list