Zum Inhalt springen

Attachment bei sr_feuser_register und realurl

Erstellt am 23. November 2006 · 2 Antworten · letzte Antwort am 24. November 2006

Tags: Frage

metan ·

Hallo,

habe ein sehr komisches Verhalten in der Extension sr_feuser_register.
Es soll bei jeder Bestätigungsemail an den User eine pdf-Datei mitversendet werden.
Diese liegt unter fileadmin.

plugin.tx_srfeuserregister_pi1.enableHTMLMail = 1
plugin.tx_srfeuserregister_pi1.enableEmailAttachment = 1
plugin.tx_srfeuserregister_pi1.file.attachmentFile = filedamin/pdf/datei.pdf

Die Bestätigungsemail wird versandt, jedoch ohne die Datei. Wo muss den die Datei liegen, damit sie mitversendet wird?

Ein weiteres Ding ist realurl. Es kommt immer wieder ein 403-Error:

Forbidden
You don't have permission to access / on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

Im Template ist folgendes eingetragen:

config.simulateStaticDocuments = 0
config.baseURL = http://www.xxxxx.de/
config.tx_realurl_enable = 0
config.prefixLocalAnchors = all

und in der ext_localconf.php

$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tstemplate.php']['linkData-PostProc'][] = 'EXT:realurl/class.tx_realurl.php:&tx_realurl->encodeSpURL';
$TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_fe.php']['checkAlternativeIdMethods-PostProc'][] = 'EXT:realurl/class.tx_realurl.php:&tx_realurl->decodeSpURL';

$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearAllCache_additionalTables']['tx_realurl_urldecodecache'] = 'tx_realurl_urldecodecache';
$TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearAllCache_additionalTables']['tx_realurl_urlencodecache'] = 'tx_realurl_urlencodecache';

$TYPO3_CONF_VARS['FE']['addRootLineFields'].= ',tx_realurl_pathsegment';

$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
    'init' => array(
        'enableCHashCache' => 1
    ),
    'preVars' => array(
        array(
            'GETvar' => 'no_cache',
            'valueMap' => array(
                'no_cache' => 1,
            ),
            'noMatch' => 'bypass',
        ),
    array(
        'GETvar' => 'L',
        'valueMap' => array(
            'de' => '0',
						'en' => '1',
						'valueDefault' => 'de',
        ),
        'noMatch' => 'bypass',
        ),
    ),
    'fileName' => array (
        'index' => array(
            'backend.php' => array(
                'keyValues' => array (
                    'type' => 100,
                )
            ),
            'print' => array(                         
                'keyValues' => array(
                    'type' => 98,
                )
            ),
        ),
    ),
    'postVarSets' => array(
        '_DEFAULT' => array (
            'article' => array(
                array(
                    'GETvar' => 'tx_ttnews[tt_news]',
                ),
                array(
                    'GETvar' => 'tx_ttnews[backPid]',
                ),
            ),
            'category' => array(
                array(
                    'GETvar' => 'tx_ttnews[cat]',
                ),
            ),
            'neste' => array(
                array(
                    'GETvar' => 'tx_ttnews[pointer]',
                ),
            ),
        ),
    ),
    'pagePath' => array(
        'type' => 'user',
        'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
        'spaceCharacter' => '-',
        'languageGetVar' => 'L',
        'expireDays' => 3
    ),
);

Vor allem das nicht mitsenden der Datei macht mir Kopfzerbrechen. Hat mir jemand Rat.

Grüße
metan
[/quote]