Skip to content

Commit e732a7b

Browse files
author
Alex LaFreniere
committed
Fix mailing settings
1 parent 184f668 commit e732a7b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Symfony/Bundle/SwiftmailerBundle/Command/SendEmailCommand.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
8282
$settingDQL = "SELECT s FROM ZenithSalonEntityBundle:Setting s " .
8383
" JOIN s.store store " .
8484
" WHERE store.id = :storeId AND s.isDeleted = FALSE " .
85-
" AND (s.settingName = 'SMTP' OR s.settingName = 'Email' OR s.settingName = 'Password' OR s.settingName = 'EmailAuthType')";
85+
" AND (s.settingName = 'PromSMTP' OR s.settingName = 'PromEmail' OR s.settingName = 'PromPassword' OR s.settingName = 'PromEmailAuthType')";
8686

8787
$settings = $em->createQuery($settingDQL)->setParameter(//array(
8888
'storeId', $store->getId()
@@ -97,16 +97,16 @@ protected function execute(InputInterface $input, OutputInterface $output)
9797
{
9898
switch ($setting->getSettingName())
9999
{
100-
case 'SMTP':
100+
case 'PromSMTP':
101101
$storeSMTP = $setting->getStringValue();
102102
break;
103-
case 'Email': //full email
103+
case 'PromEmail': //full email
104104
$storeEmail = $setting->getStringValue();
105105
break;
106-
case 'Password':
106+
case 'PromPassword':
107107
$storeEmailPass = $setting->getStringValue();
108108
break;
109-
case "EmailAuthType":
109+
case "PromEmailAuthType":
110110
$encrypt = strtolower($setting->getStringValue());
111111
break;
112112
default:

0 commit comments

Comments
 (0)