Bug #43088
closed
No mails and an error when switching to live
Added by Ingo Pfennigstorf about 12 years ago.
Updated about 6 years ago.
Description
When switching to live as admin since 4.7.6 our editors get an error and no mails are sent (see attachment). The new contents do appear in the frontend as it seems.
The error message is sent by router:
Address in mailbox given [@localhost] does not comply with RFC 2822. 3.6.2
- Status changed from New to Needs Feedback
Hi Ingo,
Do you have some more information about your environment?
Do you have version and workspaces installed or version only?
Do you have any notification settings?
Maybe this bug is related to #42948
Cheers
Marco
Btw.: Did you forget the attachment?
I can confirm this issue. Version AND Workspace is installed. Notification settings are configured. Happens since the update to TYPO3 4.7.7.
Update: I think I have traced this down a bit: see t3lib/mail/class.t3lib_mail_swiftmaileradapter.php on line 73 public function mail(). The first argument $to is defined as string ("@param string $to Email address to send the message to"), because a few lines later it will be given to $toAddresses = $this->parseAddresses($to), which also waits for a string ("@param string $rawAddresses Comma separated list of email addresses (optionally with display name)").
But in fact, if you debug the contents of $to, it's an array that is given to public function mail() instead of a string. So this can't work. And calling $toAddresses = $this->parseAddresses($to) breaks the e-mail-addresses, falling back to @localhost as the default "private $default_domain = 'localhost'" from t3lib/mail/class.t3lib_mail_rfc822addressesparser.php. The @localhost address is then given to $this->message->setTo($toAddresses);, which explains this part of the error message.
- Status changed from Needs Feedback to Accepted
Sorry guys,
that was my fault. In october I submitted a patch in workspace which depends on a patch in version. The patch in workspace was merged but the patch in version was rejected by gerrit. I did not recognized the rejection by gerrit.
- Status changed from Accepted to Under Review
- Status changed from Under Review to Resolved
Hi Marco,
sorry, the forge mails were filtered in my mail account - because there were far too many mails the last days. So I just didn't see this progress here.
Marco Bresch wrote:
Do you have some more information about your environment?
Sure, even it's not necessary anymore fore this issue ;) 4.7 on PHP 5.3.12
Do you have version and workspaces installed or version only?
both
Do you have any notification settings?
guess so, yes ;)
Btw.: Did you forget the attachment?
Yes ... but great you found the solution - I owe you some drinks next time we meet!
I did have the same issue with TYPO3 4.7.7 and version+workspaces.
Why this patch is not being taken? It solves the bug for me.
See also #43148 which is a duplicate, I think.
bye
Martin
- Category changed from Bugs to Workspaces
- Project changed from 624 to TYPO3 Core
- Category changed from Workspaces to Workspaces
- Status changed from Resolved to Closed
Also available in: Atom
PDF