[TYPO3-english] Directmail facing problem with swiftmailer
J. Bakshi
joydeep at infoservices.in
Thu Aug 9 12:45:03 CEST 2012
On Thu, 9 Aug 2012 13:09:07 +0300
"Viktor Livakivskyi" <v-tyok at mail.ru> wrote:
> Hi.
>
> > This is typo3 typo3_src-4.5.17 with directmail 3.0.2
> > directmail throwing an error as
> > Address in mailbox given [] does not comply with RFC 2822, 3.6.2.
>
> Do you have [MAIL][defaultMailFromAddress] and [MAIL][defaultMailFromName]
> set in your localconf.php?
> Also there are direct_mail settings, where you can set 'From' addreess. Did
> you check them?
>
Hello Viktor and Olivier,
Thanks for your responses.
The issue has been fixed now. I have to follow two steps
[1] according to
http://www.typo3forum.net/forum/typo3-4-x-fragen-probleme/51408-powermail-address-mailbox-given-does-not-comply-rfc-2822-3-6-2-a.html
I have changed the typo3/contrib/swiftmailer/classes/Swift/Mime/Headers/MailboxHeader.php
[...........]
private function _assertValidAddress ( $ address )
{
if ( preg_match ( '/ ^' . $ this -> getGrammar ( 'addr-spec' .) '$ / D' ,
$ address ))
{
/ / throw new Swift_RfcComplianceException (
/ / 'Address given in mailbox [' $ address..
/ / '] does not comply with RFC 2822, 3.6.2.'
/ /);
}
}
[........]
[2] I have added these two at localconf.php
````````````````````````
$TYPO3_CONF_VARS['BE']['versionNumberInFilename'] = '0';
$TYPO3_CONF_VARS['MAIL']['substituteOldMailAPI'] = '0';
````````````````````````
Fixed :-)
Thanks for your help.
More information about the TYPO3-english
mailing list