Skip to content

Commit cfe1caa

Browse files
committed
[CLEANUP] Fixed Typos
1 parent e848821 commit cfe1caa

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

public/include/classes/mail.class.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,18 @@ public function sendMail($template, $aData, $throttle=false) {
5858
if ($transport_type == 'sendmail') {
5959
$transport = Swift_SendmailTransport::newInstance($this->config['swiftmailer'][$transport_type]['path'] . ' ' . $this->config['swiftmailer'][$transport_type]['options']);
6060
} else if ($this->config['swiftmailer']['type'] == 'smtp') {
61-
$transport = Swift_SmtpTransport::newInstance($this->config['switfmailer']['smtp']['host'], $this->config['switfmailer']['smtp']['port'], $this->config['switfmailer']['smtp']['encryption']);
62-
if (!empty($this->config['switfmailer']['smtp']['username']) && !empty($this->config['switfmailer']['smtp']['password'])) {
63-
$transport->setUsername($this->config['switfmailer']['smtp']['username']);
64-
$transport->setPassword($this->config['switfmailer']['smtp']['password']);
61+
$transport = Swift_SmtpTransport::newInstance($this->config['swiftmailer']['smtp']['host'], $this->config['swiftmailer']['smtp']['port'], $this->config['swiftmailer']['smtp']['encryption']);
62+
if (!empty($this->config['swiftmailer']['smtp']['username']) && !empty($this->config['swiftmailer']['smtp']['password'])) {
63+
$transport->setUsername($this->config['swiftmailer']['smtp']['username']);
64+
$transport->setPassword($this->config['swiftmailer']['smtp']['password']);
6565
}
6666
}
6767
$mailer = Swift_Mailer::newInstance($transport);
6868

6969
// Throttle mails to x per minute, used for newsletter for example
7070
if ($this->config['swiftmailer']['type'] == 'smtp' && $throttle) {
7171
$mailer->registerPlugin(new Swift_Plugins_ThrottlerPlugin(
72-
$this->config['switfmailer']['smtp']['throttle'], Swift_Plugins_ThrottlerPlugin::MESSAGES_PER_MINUTE
72+
$this->config['swiftmailer']['smtp']['throttle'], Swift_Plugins_ThrottlerPlugin::MESSAGES_PER_MINUTE
7373
));
7474
}
7575

public/include/config/global.inc.dist.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@
6565
$config['swiftmailer']['type'] = 'sendmail';
6666
$config['swiftmailer']['sendmail']['path'] = '/usr/sbin/sendmail';
6767
$config['swiftmailer']['sendmail']['options'] = '-bs';
68-
$config['switfmailer']['smtp']['host'] = 'your.mail-relay.com';
69-
$config['switfmailer']['smtp']['port'] = '587';
70-
$config['switfmailer']['smtp']['encryption'] = 'tls';
71-
$config['switfmailer']['smtp']['username'] = '';
72-
$config['switfmailer']['smtp']['password'] = '';
73-
$config['switfmailer']['smtp']['throttle'] = 100;
68+
$config['swiftmailer']['smtp']['host'] = 'your.mail-relay.com';
69+
$config['swiftmailer']['smtp']['port'] = '587';
70+
$config['swiftmailer']['smtp']['encryption'] = 'tls';
71+
$config['swiftmailer']['smtp']['username'] = '';
72+
$config['swiftmailer']['smtp']['password'] = '';
73+
$config['swiftmailer']['smtp']['throttle'] = 100;
7474

7575
/**
7676
* Getting Started Config

0 commit comments

Comments
 (0)