@@ -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() |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | $result = $request->postMultiPartForm($message); |
| 59 | 59 | $resultJson = json_decode($result, true); |
| 60 | 60 | if (!isset($resultJson['id'])) { |
| 61 | - throw new MailApiException('Mailgun: ' . $resultJson['message']); |
|
| 61 | + throw new MailApiException('Mailgun: '.$resultJson['message']); |
|
| 62 | 62 | } |
| 63 | 63 | |
| 64 | 64 | return true; |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | |
| 26 | 26 | // Fix BCC header because PHPMailer does not send to us |
| 27 | 27 | foreach ((array)$envelope->getBCC() as $bccEmail) { |
| 28 | - $messageParts['header'] .= 'Bcc: ' . $bccEmail . "\n"; |
|
| 28 | + $messageParts['header'] .= 'Bcc: '.$bccEmail."\n"; |
|
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | foreach ($envelope->getTo() as $toEmail) { |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | |
| 42 | 42 | // Fix BCC header because PHPMailer does not send to us |
| 43 | 43 | foreach ((array)$envelope->getBCC() as $bccEmail) { |
| 44 | - $message = 'Bcc: ' . $bccEmail . "\n" . $message; |
|
| 44 | + $message = 'Bcc: '.$bccEmail."\n".$message; |
|
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | $ses = $this->getSesClient(); |
@@ -91,7 +91,7 @@ |
||
| 91 | 91 | if (!empty($this->uri->getUsername())) { |
| 92 | 92 | $mail->SMTPAuth = true; |
| 93 | 93 | $mail->Username = $this->uri->getUsername(); // SMTP account username |
| 94 | - $mail->Password = $this->uri->getPassword(); // SMTP account password |
|
| 94 | + $mail->Password = $this->uri->getPassword(); // SMTP account password |
|
| 95 | 95 | } |
| 96 | 96 | |
| 97 | 97 | if (!$mail->send()) { |