[TYPO3] direct mail doesnt read newsletter url correctly...

Kahlil Lechelt k.lechelt at gmx.de
Tue Mar 7 16:59:54 CET 2006


ok i found the solution:

in the file 'class.mod_web_dmail.php'
we have this on line 261:

$this->urlbase = 
substr(t3lib_div::getIndpEnv("TYPO3_REQUEST_DIR"),0,-(strlen(TYPO3_MOD_PATH)+strlen(TYPO3_mainDir))).'index.php';

which gave mi an broken url. i substituted it with:

$this->urlbase = t3lib_div::getIndpEnv('TYPO3_SITE_URL').'index.php';

which is also much less complicated. now it works.
but why did the programmer dont use TYPO3_SITE_URL in the first place???

best regards
kahlil



Kahlil Lechelt wrote:
> hi!
> i am configuring direct_mail according to marlies cohens tutorial.
> 
> when i try to render a newsletter then the module doesnt put the url 
> together correctly.
> 
> for instance:
> correct url would be: "www.mysite.net/www2/index.php?id=28"
> i get "www.mysite.nindex.php?id=28" in the module and of course i get a 
> failiure if i try to render that...
> 
> did anybody encounter the same problem?
> can somebody help me?
> 
> regards,
> kahlil



More information about the TYPO3-english mailing list