Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b52a885b authored by Nivesh Krishna's avatar Nivesh Krishna
Browse files

fix smtp port

parent cf527e55
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -230,6 +230,7 @@ function sendWelcomeMailWithPHPMail(string $to, string $mbox, string $domain, st
    $host = getenv("SMTP_HOST");
    $username = getenv("WELCOME_SMTP_FROM");
    $password = getenv("WELCOME_SMTP_PW");
    $port = getenv("SMTP_PORT");
    $headers = array('From' => $from,
        'To' => $to,
        'Subject' => $subject,
@@ -239,7 +240,9 @@ function sendWelcomeMailWithPHPMail(string $to, string $mbox, string $domain, st
        array('host' => $host,
            'auth' => true,
            'username' => $username,
            'password' => $password)
            'password' => $password,
            'port' => $port
        )
    );
    $mail = $smtp->send($to, $mime->headers($headers), $body);
}