@@ -18,7 +18,7 @@ |
||
18 | 18 | public static function getFullEmail($email, $name = "") |
19 | 19 | { |
20 | 20 | if (!empty($name)) { |
21 | - return "\"" . $name . "\" <" . $email . ">"; |
|
21 | + return "\"".$name."\" <".$email.">"; |
|
22 | 22 | } else { |
23 | 23 | return $email; |
24 | 24 | } |
@@ -8,7 +8,7 @@ |
||
8 | 8 | { |
9 | 9 | $parts = $this->getMessageEnvelopeParts(); |
10 | 10 | |
11 | - return $parts['header'] . $parts['body']; |
|
11 | + return $parts['header'].$parts['body']; |
|
12 | 12 | } |
13 | 13 | |
14 | 14 | public function getMessageEnvelopeParts() |
@@ -200,7 +200,7 @@ |
||
200 | 200 | } elseif ($protocol === "mailgun") { |
201 | 201 | $mail = new MailgunApiWrapper($connection); |
202 | 202 | } else { |
203 | - throw new InvalidArgumentException("Connection '" . $connection->getProtocol() . "' is not valid"); |
|
203 | + throw new InvalidArgumentException("Connection '".$connection->getProtocol()."' is not valid"); |
|
204 | 204 | } |
205 | 205 | |
206 | 206 | return $mail; |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | |
26 | 26 | // Fix BCC header because PHPMailer does not send to us |
27 | 27 | foreach ((array)$envelope->getBCC() as $bccEmail) { |
28 | - $message = 'Bcc: ' . $bccEmail . "\n" . $message; |
|
28 | + $message = 'Bcc: '.$bccEmail."\n".$message; |
|
29 | 29 | } |
30 | 30 | |
31 | 31 | $domainName = $this->connection->getServer(); |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | |
46 | 46 | $resultJson = json_decode($result, true); |
47 | 47 | if (!isset($resultJson['id'])) { |
48 | - throw new Exception('Mailgun: ' . $resultJson['message']); |
|
48 | + throw new Exception('Mailgun: '.$resultJson['message']); |
|
49 | 49 | } |
50 | 50 | |
51 | 51 | return true; |
@@ -92,7 +92,7 @@ |
||
92 | 92 | if (!empty($this->connection->getUsername())) { |
93 | 93 | $mail->SMTPAuth = true; |
94 | 94 | $mail->Username = $this->connection->getUsername(); // SMTP account username |
95 | - $mail->Password = $this->connection->getPassword(); // SMTP account password |
|
95 | + $mail->Password = $this->connection->getPassword(); // SMTP account password |
|
96 | 96 | } |
97 | 97 | |
98 | 98 | if (!$mail->send()) { |
@@ -23,7 +23,7 @@ |
||
23 | 23 | |
24 | 24 | // Fix BCC header because PHPMailer does not send to us |
25 | 25 | foreach ((array)$envelope->getBCC() as $bccEmail) { |
26 | - $messageParts['header'] .= 'Bcc: ' . $bccEmail . "\n"; |
|
26 | + $messageParts['header'] .= 'Bcc: '.$bccEmail."\n"; |
|
27 | 27 | } |
28 | 28 | |
29 | 29 | mail($envelope->getTo(), $envelope->getSubject(), $messageParts['body'], $messageParts['header']); |
@@ -74,7 +74,7 @@ |
||
74 | 74 | } else { |
75 | 75 | $resultJson = json_decode($result, true); |
76 | 76 | if ($resultJson[0]['status'] == 'error') { |
77 | - throw new Exception('Mandrill: ' . $resultJson[0]['message']); |
|
77 | + throw new Exception('Mandrill: '.$resultJson[0]['message']); |
|
78 | 78 | } |
79 | 79 | } |
80 | 80 |
@@ -24,7 +24,7 @@ |
||
24 | 24 | |
25 | 25 | // Fix BCC header because PHPMailer does not send to us |
26 | 26 | foreach ((array)$envelope->getBCC() as $bccEmail) { |
27 | - $message = 'Bcc: ' . $bccEmail . "\n" . $message; |
|
27 | + $message = 'Bcc: '.$bccEmail."\n".$message; |
|
28 | 28 | } |
29 | 29 | |
30 | 30 | //Send the message (which must be base 64 encoded): |