@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | use Swift_Message; |
9 | 9 | use Swift_SmtpTransport; |
10 | 10 | |
11 | -class SendMail extends Module{ |
|
11 | +class SendMail extends Module { |
|
12 | 12 | |
13 | 13 | private $siteConfig; |
14 | 14 | |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | |
25 | 25 | // Create the Transport for mail sending |
26 | 26 | //$config = $this->siteConfig->getSiteConfig(); |
27 | - $this->transport = (new Swift_SmtpTransport($this->siteConfig["SMTP_server"], (int)$this->siteConfig["SMTP_port"])) |
|
27 | + $this->transport = (new Swift_SmtpTransport($this->siteConfig["SMTP_server"], (int) $this->siteConfig["SMTP_port"])) |
|
28 | 28 | ->setUsername($this->siteConfig["SMTP_user"]) |
29 | 29 | ->setPassword($this->siteConfig["SMTP_pass"]) |
30 | 30 | ; |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | $message = "<h1>Message from <a href='".$this->container->getRequest()->getBaseUrl()."'>".$this->siteConfig["site_name"]."</a></h1>"; |
70 | 70 | $message .= "<p>You have asked to reset your password, please click <a href=\"".$url."\">Here</a> to define a new password</p>"; |
71 | 71 | |
72 | - $this->send($to, "Define New Password", $message ); |
|
72 | + $this->send($to, "Define New Password", $message); |
|
73 | 73 | |
74 | 74 | } |
75 | 75 | |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | $message .= "<p>You have sucsessfuly created an account, now all you need to do is <a href=\"".$url."\">Create your new password</a></p>"; |
90 | 90 | $message .= "<p>Have fun</p>"; |
91 | 91 | |
92 | - $this->send($to, "Define Password at ".$this->siteConfig["site_name"], $message ); |
|
92 | + $this->send($to, "Define Password at ".$this->siteConfig["site_name"], $message); |
|
93 | 93 | |
94 | 94 | } |
95 | 95 | } |
96 | 96 | \ No newline at end of file |