This commit is contained in:
Ulf Gebhardt 2019-01-21 12:48:55 +01:00
parent 53e4435df0
commit 139347b8e5
3 changed files with 7 additions and 1 deletions

View File

@ -31,6 +31,7 @@ class saimod_mail extends \SYSTEM\SAI\sai_module{
const EMAIL_ACCOUNT_CONTACT = 1;
const EMAIL_ACCOUNT_PROTOTYPING = 2;
const EMAIL_ACCOUNT_CROWDFUNDING = 3;
const EMAIL_ACCOUNT_KRUEGER = 4;
public static function subscribe($email,$list){
return \SQL\SUBSCRIBE::QI(array($email,$list));
@ -69,6 +70,9 @@ class saimod_mail extends \SYSTEM\SAI\sai_module{
case self::EMAIL_ACCOUNT_CROWDFUNDING:
$smtp = \SYSTEM\CONFIG\config::get(\config_ids::DEMOCRACY_EMAIL_CROWDFUNDING);
break;
case self::EMAIL_ACCOUNT_KRUEGER:
$smtp = \SYSTEM\CONFIG\config::get(\config_ids::DEMOCRACY_EMAIL_KRUEGER);
break;
// contact
default:
$smtp = \SYSTEM\CONFIG\config::get(\config_ids::DEMOCRACY_EMAIL_CONTACT);
@ -515,7 +519,7 @@ class saimod_mail extends \SYSTEM\SAI\sai_module{
public static function sai_mod__SAI_saimod_mail_action_email($id){
$vars = \SQL\EMAIL_SELECT::Q1(array($id));
$vars['template_lock'] = $vars['system_lock'] ? 'disabled' : '';
$vars['selected_account_1'] = $vars['selected_account_2'] = $vars['selected_account_3'] = '';
$vars['selected_account_1'] = $vars['selected_account_2'] = $vars['selected_account_3'] = $vars['selected_account_4'] = '';
$vars['selected_account_'.$vars['account']] = 'selected';
//text template
$vars['text_options'] = '';

View File

@ -16,6 +16,7 @@
<option value="1" ${selected_account_1}>contact@democracy-deutschland.de</option>
<option value="2" ${selected_account_2}>prototyping@democracy-deutschland.de</option>
<option value="3" ${selected_account_3}>crowdfunding@democracy-deutschland.de</option>
<option value="4" ${selected_account_4}>krueger@democracy-deutschland.de</option>
</select>
</td>
</tr>

View File

@ -12,6 +12,7 @@
<option value="1" selected>contact@democracy-deutschland.de</option>
<option value="2">prototyping@democracy-deutschland.de</option>
<option value="3">crowdfunding@democracy-deutschland.de</option>
<option value="4">krueger@democracy-deutschland.de</option>
</select>
</td>
</tr>