EXT:formhandler – Custom marker with absolute URL

Problem

Images in HTML-Mails need an absolute URL

Solution

1. Get the absolute URL of your current typo3-project via typoscript

# Result: http://3dprinting.tec-se.private/
customMarkerTypo3SiteUrl = TEXT
customMarkerTypo3SiteUrl.data = getIndpEnv:TYPO3_SITE_URL

2. Create a custom marker inside of formhandler

# ----------------------------------------------------------------------
# Define a marker in Typoscript.
# You can use ###myCustomMarker### in your HTML template
# ----------------------------------------------------------------------
plugin.Tx_Formhandler.settings {
   markers {
      # Used for absolute email image links
      customMarkerTypo3SiteUrl = TEXT
      customMarkerTypo3SiteUrl.data = getIndpEnv:TYPO3_SITE_URL
   }
}

Links

http://www.typo3-formhandler.com/documentation/general-options/
http://www.thefox.ch/typo/code-schnipsel/typoscript/umgebungsvariablen/