Skip to content
Snippets Groups Projects
Commit 4debb435 authored by Torsten Oppermann's avatar Torsten Oppermann
Browse files

[BUG] Fixing Configuration issues

parent 95166c49
No related branches found
No related tags found
No related merge requests found
......@@ -140,7 +140,7 @@ class MailController extends ActionController {
return;
}
$langFileContent = 'TEST: ' . $language->getLocale();
$langFileContent = 'Auto Generated for Language: ' . $language->getLocale();
file_put_contents($currentLangFile, $langFileContent);
}
......
......@@ -71,8 +71,13 @@ class MailTemplateService extends AbstractFinisher {
$translator = (TYPO3_MODE === 'FE' ? $GLOBALS['TSFE'] : $GLOBALS['LANG']);
$subject = $translator->sL($this->tsConfig['subject'], TRUE);
$toAddress = $this->tsConfig['to_address'];
if (isset($this->gp['email'])) {
$toAddress = $this->gp['email'];
}
self::sendEmail(
'en', $this->tsConfig['template_key'], $this->tsConfig['extension_key'], $this->tsConfig['to_address'],
'en', $this->tsConfig['template_key'], $this->tsConfig['extension_key'], $toAddress,
$this->tsConfig['from_address'], $subject, $this->gp, $this->tsConfig['ignore_mail_queue']
);
return $this->gp;
......@@ -108,7 +113,7 @@ class MailTemplateService extends AbstractFinisher {
$defaultLangFile = $templatePath . 'en.sg_mail.locallang.html';
if (!file_exists($defaultLangFile)) {
$langFileContent = 'TEST';
$langFileContent = '';
file_put_contents($defaultLangFile, $langFileContent);
}
}
......
......@@ -5,8 +5,4 @@ plugin.tx_sgmail {
layoutRootPath = EXT:sg_mail/Resources/Private/Layouts/
publicRootPath = EXT:sg_mail/Resources/Public/
}
mail {
from.test = 'info@test.de'
}
}
......@@ -4,4 +4,12 @@ module.tx_sgmail {
partialRootPath = {$plugin.tx_sgcmail.view.partialRootPath}
layoutRootPath = {$plugin.tx_sgcmail.view.layoutRootPath}
}
settings {
mail {
from.test = info@test.de
}
template.filename = mail_template.html
}
}
......@@ -4,7 +4,7 @@
* Extension Manager/Repository config file for ext "sg_mail".
***************************************************************/
$EM_CONF[$_EXTKEY] = array (
$EM_CONF['sg_mail'] = array (
'title' => 'Mail Templates',
'description' => 'Mail Templates',
'category' => 'module',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment