@@ 57-60 (lines=4) @@ | ||
54 | $mail->IsSMTP(); |
|
55 | $mail->Timeout = 30; // 30 seconds as some files can be big |
|
56 | $mail->Host = $config['cops_mail_configuration']["smtp.host"]; |
|
57 | if (!empty ($config['cops_mail_configuration']["smtp.secure"])) { |
|
58 | $mail->SMTPSecure = $config['cops_mail_configuration']["smtp.secure"]; |
|
59 | $mail->Port = 465; |
|
60 | } |
|
61 | $mail->SMTPAuth = !empty ($config['cops_mail_configuration']["smtp.username"]); |
|
62 | if (!empty ($config['cops_mail_configuration']["smtp.username"])) $mail->Username = $config['cops_mail_configuration']["smtp.username"]; |
|
63 | if (!empty ($config['cops_mail_configuration']["smtp.password"])) $mail->Password = $config['cops_mail_configuration']["smtp.password"]; |
|
@@ 64-64 (lines=1) @@ | ||
61 | $mail->SMTPAuth = !empty ($config['cops_mail_configuration']["smtp.username"]); |
|
62 | if (!empty ($config['cops_mail_configuration']["smtp.username"])) $mail->Username = $config['cops_mail_configuration']["smtp.username"]; |
|
63 | if (!empty ($config['cops_mail_configuration']["smtp.password"])) $mail->Password = $config['cops_mail_configuration']["smtp.password"]; |
|
64 | if (!empty ($config['cops_mail_configuration']["smtp.secure"])) $mail->SMTPSecure = $config['cops_mail_configuration']["smtp.secure"]; |
|
65 | if (!empty ($config['cops_mail_configuration']["smtp.port"])) $mail->Port = $config['cops_mail_configuration']["smtp.port"]; |
|
66 | ||
67 | $mail->From = $config['cops_mail_configuration']["address.from"]; |